Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Shorter version' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Shorter version
Authored by: fm on Oct 02, '03 11:38:00AM

To convert an "HFS path" to an "Unix path" and back you can use:

-- HFS to Unix

posix path of "Mac HD:A Folder:Another One:"

-- will return:
-- "/Mac HD/A Folder/Another One/"

-- UNIX to HFS:

posix file "/aFile.txt"

-- will return:
-- file "Mac HD:aFile.txt"

So the script can be made shorter (and probably quicker) this way:

on run
tell application "Finder" to return POSIX path of (desktop picture as alias)
end run



[ Reply to This | # ]
Shorter version
Authored by: Apollo18Pnut on Oct 02, '03 05:55:22PM

splendid!

now to figure out how to display the currently-rotated-in desktop...



[ Reply to This | # ]