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

Nick Renders omnis1 at arcict.com
Wed Jul 6 14:21:03 UTC 2022

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 at http://lists.omnis-dev.com

More information about the omnisdev-en mailing list