Hey Dan,
This is from a VERY old project so not sure if it's still valid
(especially the getOSDirectory() function), but here goes:
set driveName = ""
set drivePath = getOSDirectory()
repeat with i = 1 to (the number of chars in drivePath)
if char i of drivePath <> ":" then
set driveName = driveName & char i of drivePath
else
set macDrive = driveName
exit repeat
end if
end repeat
Hope it helps.
Faisal
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dan Sheridan
Sent: Wednesday, January 19, 2005 5:24 AM
To: [email protected]
Subject: <lingo-l> BuddyAPI - MAC OSX
Hi List,
I have run into a little problem using the baCreateFolder with
BuddyAPI on both Mac OS9 and Mac OSX - basically, I have a document on
a CD that I need to download to a pre-determined folder on the users
system... I tried using the example such as Mac HD:myfolder:etc
however Mac HD doesnt appear to be valid if the user has renamed their
drives... any ideas?
Cheers,
Dan ;)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]).
Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]