• 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: Applescript in the terminal (fwd)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript in the terminal (fwd)


  • Subject: Re: Applescript in the terminal (fwd)
  • From: Steve Thompson <email@hidden>
  • Date: Thu, 18 Apr 2013 19:51:36 +0100


On 18 Apr 2013, at 19:08, - <email@hidden> wrote:

23:23: syntax error: Expected end of line but found end of script. (-2741)

That's because it's seeing the quotes as the end of the command - you need to escape them like so:

osascript -e "tell application \"System Events\" to keystroke \"k\""

Steve
 _______________________________________________
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

References: 
 >Re: Applescript in the terminal (fwd) (From: - <email@hidden>)

  • Prev by Date: Re: Applescript in the terminal (fwd)
  • Next by Date: Re: correct script won't compile in XCode???
  • Previous by thread: Re: Applescript in the terminal (fwd)
  • Next by thread: Re: Applescript in the terminal (fwd)
  • Index(es):
    • Date
    • Thread