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

10.4: Use full paths in Automator workflows Apps
Tiger only hintHopefully this will save others some headaches.

When performing Unix commands, Automator does not seem to do tilde expansion for directory paths. Thus, if you were building an arbitrary workflow to send the output of ls to a textfile, for instance, directories must be entered as:
as opposed to:
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)

10.4: Use full paths in Automator workflows | 2 comments | Create New Account
Click here to return to the '10.4: Use full paths in Automator workflows' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use full paths in Automator workflows
Authored by: shavenyak on May 13, '05 11:56:06AM

I think tilde expansion is normally done internally by the bash shell. It's possible that instead of simply performing the ls command, you could pipe 'ls ~/whatever' through /bin/bash and get the desired result. I don't have Tiger, so I can't try it myself.

[ Reply to This | # ]
Full paths in AppleScript
Authored by: Anonymous on May 13, '05 01:48:29PM

tell application "Finder" to set mac_path to (home as string)
tell application "Finder" to set unix_path to (do shell script "echo $HOME")

[ Reply to This | # ]