• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: In praise of "do script" (and the AppleScript team)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: In praise of "do script" (and the AppleScript team)
      • From: John W Baxter <email@hidden>
References: 
 >Re: In praise of "do script" (and the AppleScript team) (From: Matthew Stuckwisch <email@hidden>)

  • Prev by Date: Re: read file question
  • Next by Date: A few notes on Ascripts/Pscripts/Script menu
  • Previous by thread: Re: In praise of "do script" (and the AppleScript team)
  • Next by thread: Re: In praise of "do script" (and the AppleScript team)
  • Index(es):
    • Date
    • Thread