PDA

View Full Version : Mac OS X file:/// URI


darth
05-22-2007, 09:43 AM
I need to change

fl.runScript("file:///C:/Documents and Settings/Administrator/Desktop/file.jsfl")

to mac equivalent but I have no Idea how should it go exactly, I know mac uses : instead of / as folder separators...
How can I write relative paths in OS X?

krayzeebean
05-24-2007, 11:30 PM
I don't think Macs use : separator since OSX came out, it's / now. URI is platform independent anyway though. I don't remember the path to the desktop on a mac but I think it's something like file:///MacHD|/users/username/desktop/file.jsfl

bigevilbrain
06-19-2007, 09:56 PM
You can just use a slash. Also, use "fl.configURI" to get the path to the "Configuration" folder:

fl.runScript( fl.configURI + "Commands/somefolder/file.jsfl");