Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Fullpath on Mac OS 10.5 for GDL TEXT Addon

Jochen Suehlo
Moderator
Can anybody tell me the correct syntax of the fullpath keyword for MAC OS 10.5 for the GDL DATA and TEXT ADDON (as I am new on MAC):
"Users/joe/Documents/Bauten/GDL/name.txt"
does not work.
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
2 REPLIES 2
Karl Ottenstein
Moderator
Joachim wrote:
Can anybody tell me the correct syntax of the fullpath keyword for MAC OS 10.5 for the GDL DATA and TEXT ADDON (as I am new on MAC):
"Users/joe/Documents/Bauten/GDL/name.txt"
does not work.
I have not experimented to see what path formats the add-on wants to see, but the Mac uses at least two formats. The one you show above is a Posix/Unix one - but is missing the initial "/" to indicate that Users is a root folder of the active/boot drive. (There is a unix way to address other disk drives, too.)

There is also this type of path:

Macintosh HD:Users:joe:Documents:Bauten:GDL:name.txt

where "Macintosh HD" is the name of the drive that you are referencing.

I've seen some kinds of combinations of the two.

No experience here - but you might try either the extra "/" or the ":" method and see if one works?

Cheers,
Karl

PS here is another illustration from the AppleScript help file:
POSIX path of file "HD:Users:me:Documents:Welcome.txt"
-- result: "/Users/me/Documents/Welcome.txt"
PPS The syntax used in the Options > Work Enironment > Special Folders is most likely what the GDL add-on uses - and that is the Mac-style ":" path. (I find this really annoying because it forces your hard drive name to be part of the path - and if you change the disk name, the paths no longer work...a problem if you clone your OS onto multiple partitions: stuff will not work correctly on the clone as there is no concept of 'active drive', only the hard-coded disk name.)
AC 28 USA and earlier   •   macOS Sequoia 15.3, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
One of the forum moderators
Jochen Suehlo
Moderator
Thanks Karl,
Macintosh HD:Users:joe:Documents:Bauten:GDL:name.txt 
works well and the syntax of the special folder correspondents with it.
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de