Re: In praise of "do script" (and the AppleScript team)
Re: In praise of "do script" (and the AppleScript team)
- Subject: Re: In praise of "do script" (and the AppleScript team)
- From: Christopher Nebel <email@hidden>
- Date: Tue, 16 Apr 2002 17:51:53 -0700
On Monday, April 15, 2002, at 06:39 PM, Matthew Stuckwisch wrote:
Fooling with that devil's spawn which is URL Access Scripting, I
decided that life is too short to play with this, so I checked out
curl. Coupled with do script, this works brilliantly. Thank you
AppleScript team for giving us such a deceptively simple tool.
The only problem I've found in all my usage of "do shell script" is
that when listing POSIX paths, there is no easy way to put in the
special characters. Perhaps someone could figure out a way to convert
all special characters to their POSIX equivalent (eg, not doing the
classic method of replacing them with a "*", which means spaces then
have to become "\ " since you can then no longer put them in quotes),
or maybe the AS team could implement that conversion in the next
release?
This is what the "quoted form" property of strings, introduced in
AppleScript 1.8.1 along with "do shell script", was designed to do.
Unfortunately, it didn't actually work, so people had to come up with
all these terrible workarounds. As of 1.8.2, the simplest way to turn a
file into something usable with a shell script is to say
quoted form of POSIX path of some_file
--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.