This content has been marked as final. Show 3 replies
Sounds like you might be talking about path relative operations?
The pathName, the moviePath give the fully defined path to the folder
containing the current director movie
the applicationPath gives the projector location ( it's tough to test in
quthoring environment since it then is pointing to Director app location)
delimiter = the last char of the moviePath
-- Does the same job as your code
delim = getAt([":", "\"], (the platform contains "win") + 1)
delimiter = ":"&delim
delimiter = delim
My problem is that Mac users can name their harddrive anything they want therefore I am unable to write a fully defined path. I want to write to the folder that the projector resides in. How can I edit the driveToWriteTo code to write to a document that resides in the same folder as the projector ["my MoviePath"]? Is this possible? I keep trying but KEEP getting variable not defined errors. Thanks!
You can find two methods named PathRelativeTo() and PathMakeAbsolute() in the File Manager script which you can find at http://nonlinear.openspark.com/tips/scripts/xtras/. You'll also need to download the Xtras Broker script.
You can use these handlers to create a relative path to a given file, and to resolve that to an absolute path on the current platform and machine.