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

Phil (OmnisList) phil at pgpotter.co.uk
Thu Jul 7 07:51:45 UTC 2022


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:mike.matthews at lineal.co.uk>
>
> www.lineal.co.uk<http://www.lineal.co.uk/>
>
> www.sqlworks.co.uk<http://www.sqlworks.co/>
>
>
>
> 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://lists.omnis-dev.com
> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com  


More information about the omnisdev-en mailing list