O$ : getting the local computers hard drive name under OSX

Phil (OmnisList) phil at pgpotter.co.uk
Thu Jul 7 15:21:36 UTC 2022


Hi Mike,

Just for the omnis list records...

Its available on github with a different name:
https://github.com/OmnisStudio/Omnis-Sysinfo

regards
Phil Potter
Based in Chester in the UK.

On 07/07/2022 09:11, Mike Matthews - Omnis via omnisdev-en wrote:
> Nope, it came from Omnis support, they made me an xComp to get certain machine info so that we could use MTD and report the values to HMRC.
>
> Andy uses MTD object from me, and it should give him what he needs.
>
> Mike Matthews
>
> Lineal Software Solutions
> Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
>
> omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
>
> www.lineal.co.uk<http://www.lineal.co.uk/>
>
> www.sqlworks.co.uk<http://www.sqlworks.co/>
>
>
>
> On 7 Jul 2022, at 08:51, Phil (OmnisList) <phil at pgpotter.co.uk<mailto:phil at pgpotter.co.uk>> wrote:
>
> MTD xcomp ?
>
> Is this your own thing Mike?
>
> regards
> Phil Potter
> Based in Chester in the UK.
>
> On 07/07/2022 08:41, Mike Matthews - Omnis via omnisdev-en wrote:
> Andy,
>
> The MTD xComp for v10.2 will give you this info, and more.
>
> Mike Matthews
>
> Lineal Software Solutions
> Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
>
> omnis at lineal.co.uk<mailto:omnis at lineal.co.uk><mailto:mike.matthews at lineal.co.uk>
>
> https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.lineal.co.uk&c=E,1,dfL5oXXLeDEsAsJUFkCWak26uDkAPr7x-CpQ2URgqhDaoGNS-H9yrbSZspwX0wEg3D6JwRE3FFzuQ4CL79Zz7vPiKz0vBKHYqrLCk51ElA,,&typo=1<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.lineal.co.uk%2f&c=E,1,uD0epeViuZ7jK86Nr3-LYgYI4odfFffjvMNcanqksSCMnvTsn50DHIR1u1vxHK8dZF0mNap6p2DxFI8BGzXUmh8Bo05fJuJHDDgkOyLY2mbd8o4cZR0ubaJ1dw,,&typo=1>
>
> https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.sqlworks.co.uk&c=E,1,an08fBfJnbIAcc48p-fKGa2OxQZbZO_Hy--FQqP4x9H2YhCwDX_KYai-0Q2ZUG_fkJyMklYJZF-6xBmjzyO2uq5NzqF3eRi0w0I1ItY_wTlbb09QZ3auHQ,,&typo=1<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.sqlworks.co%2f&c=E,1,mEpQvn7ysP5iAlEcAXRKy_B5GzahLPNHMvKDNxxzJ8JzyBM1T1TFAK-JE_a6ChPkB0rOVOXKCeOnofUADHXDfi2qBjZaE5uIT3rCnfbiu_I,&typo=1>
>
>
>
> On 6 Jul 2022, at 15:21, Nick Renders <omnis1 at arcict.com<mailto:omnis1 at arcict.com>> wrote:
>
> I know it's 12 years overdue, but here is an easy way to get the Startup Volume without AppleScript:
>
> Do FileOps.$convertposixpathtohfspath("/",#S1)
>
> I haven't tested it with Open Directory, but I think it should work.
> Not sure if that command existed back in 2010, though ;-)
>
> Nick Renders
>
>
> On 13 Sep 2010, at 15:54, Andy Hilton wrote:
>
> Does anyone know of any variable (a getenv perhaps ?) which will let me determine the local computers main drive name ?
>
> I'm having an issue under OSX where Open Directory is being used and the number of locations where a user can create a temporary file locally becomes quite limited.....
>
> I have discovered that <Main Drive Name>:users:shared is typically ok for writing files into so I'm trying to automate a way to locate that path name !
>
> Anyone any bright ideas ?
>
> I can't realistically use any of the Omnis paths as the app may be being run from a remote volume.....
> I can't use the users Home location as under Open Directory it is likely to be remote as well !
>
> Andy_____________________________________________________________
> Manage your list subscriptions athttps://linkprotect.cudasvc.com/url?a=http%3a%2f%2flists.omnis-dev.com&c=E,1,rowI1WloOl5TtfydVCBbTDG92ahqakvl9LleQzzwbvJqoKJuodzH8Vfgas8Cg3TYcnV61BcYpHe__NLp0XzUttCcdLV0Lz2j1vCf2X-GARu8HnF3mG53IPqW&typo=1
> _____________________________________________________________
> Manage your list subscriptions athttps://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,QK6XO2Yz98iAkOfavcaqr70x1fOiQIZqi-itm43he2Dx6r8W4JBsOPa3JXkFwMRCjgHBuMgWjEXeKKnieo7WPoam-oH3Xmwp153KPCADjy9cKM8GLDlzCKirws-N&typo=1
> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions athttps://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,wIeVd3S5P6IUrMcbkq59SDdyiWfK4LIK-9RRqzH-xe_627veGF_OQc2vRL3ZflrepRDPa_9V1M9clKIFXUX0GZurS47Cp_mA6K3CTjAx1U0,&typo=1
> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com
> _____________________________________________________________
> Manage your list subscriptions athttps://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,TyuLHo4w_YgctHtbpe6yT6WKlzXES_-KOBYT0iD9YL8FLWMzw3px3en3BLMC_wAGYH40b6tX42DdC6j0y0HWziVyjHqSQ-0Cq5zBirg5vcevUyLMNvk_whwn&typo=1
> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions athttps://lists.omnis-dev.com
> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com  


More information about the omnisdev-en mailing list