Objects reading textfiles in PC and MAC
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-09-27 07:36 AM
2012-09-27
07:36 AM
Is there any gdl-command for an object to distinquish between platforms?
My object should find a textfile but the path comands are different for PC and MAC. If the object knew the platform, it would be easy to use the right command depending on the platform.
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-09-27 08:55 AM
2012-09-27
08:55 AM
Maybe you could try ...
n=REQUEST("Name_of_program", "", program_name)
PRINT program_name
On Windows machines this will return "Archicad.exe"
I assume on a MAC it would be different as they do not use .EXE files.
But I don't have a Mac so I can't be sure.
Barry.
n=REQUEST("Name_of_program", "", program_name)
PRINT program_name
On Windows machines this will return "Archicad.exe"
I assume on a MAC it would be different as they do not use .EXE files.
But I don't have a Mac so I can't be sure.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-09-27 09:56 AM
2012-09-27
09:56 AM
Thank You, Barry
Mac shows "Archicad.app" and PC "Archicad.exe"
I think this solved my problem.
BR Pertti
Mac shows "Archicad.app" and PC "Archicad.exe"
I think this solved my problem.
BR Pertti
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.