|
|
Combining AppleScript variables and UNIX shell scripts
This will likely fail if the thevariable contains a space (bob smith.txt). I usually try to build qualified paths before passing them to the do shell script command. Here's some general info (snipped from a post on Apple's AppleScript forum) regarding paths sent to the shell.
The shell doesn't like traditional Mac paths such as:
Combining AppleScript variables and UNIX shell scripts
I do agree it's pretty basic applescript stuff, however, some people don't know about it. heck I know a bit about applescript and had not see the 'quoted form' thing, which I'm about to use as i'm going to rewrite some scripts that deal with paths which will include spaces in file names. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|