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: Apollo18Pnut on Oct 02, '03 06:02:01PM
Incorporating the comment above:

#!/bin/sh

FILEPATH=`osascript -e "tell application \"Finder\" to return POSIX path of (desktop picture as alias)"`

/sw/bin/Esetroot -scale -center $FILEPATH


[ Reply to This | # ]
Quoted Form!
Authored by: dhawes on Oct 04, '03 08:20:14PM

Note from this hint:
http://www.macosxhints.com/article.php?story=20030805175235977
>quoted form of "/path/to/some/cool file"
> Returns: "'/path/to/some/cool file'"

so it would look like this:

#!/bin/sh
FILEPATH=`osascript -e "tell application \"Finder\" to return quoted form of POSIX path of (desktop picture as alias)"`
/sw/bin/Esetroot -scale -center $FILEPATH

---
-----
www.cocoaobjects.com



[ Reply to This | # ]