• 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
osascript shell commands using AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

osascript shell commands using AppleScript


  • Subject: osascript shell commands using AppleScript
  • From: Bill Cheeseman <email@hidden>
  • Date: Tue, 24 Jun 2008 15:58:19 -0400
  • Thread-topic: osascript shell commands using AppleScript

In Leopard, we are told that AppleScript allows use of "#" as an alternative
to "--" as a comment-to-end-of-line token, and that as a result shell
commands can be written using straight AppleScript by including the comment
#!usr/bin/osascript at the beginning and setting the file's execute bit.

Sure enough, it works.

But how do I capture shell variables like $1 and $2 when doing this? I'm
thinking of using AppleScript this way in a PackageMaker 3 shell script.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com

PreFab Software - www.prefabsoftware.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: osascript shell commands using AppleScript
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Adobe Scripting Survey
  • Next by Date: Re: Adobe Scripting Survey
  • Previous by thread: Re: problem with save a Pages document under 10.5
  • Next by thread: Re: osascript shell commands using AppleScript
  • Index(es):
    • Date
    • Thread