O$ : getting the local computers hard drive name under OSX
Rudolf Gautschi
galenus at hispeed.ch
Wed Jul 6 19:21:18 UTC 2022
When i serialize an Omnis, then i enter the Name of the Startup Volume i.e. "Macintosh HD" in the Field „Company“ and then i can get that Name
trough sys(3).
Rudolf Gautschi
> Am 06.07.2022 um 16:21 schrieb Nick Renders <omnis1 at arcict.com>:
>
> 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
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list