• 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: AppleScript4programmers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript4programmers


  • Subject: Re: AppleScript4programmers
  • From: "Gary (Lists)" <email@hidden>
  • Date: Sat, 08 Dec 2007 10:22:55 -0500
  • Thread-topic: AppleScript4programmers

"Mark J. Reed" wrote:

> Well, I got the impression that was what Smile was, but it's not quite
> how I imagined it, andI haven't figured out how to make it actually
> execute a line of AppleScript yet... :\

1. Launch Smile.
2. In the worksheet that opens (or in one you make, Cmd-N)
   type a line of code.
3. Press 'Enter' (not return)

That's it.

It's an interactive AS terminal.

Notes:

A) you can't execute a line that is not a fully executable line of code.
    That is, if you type and execute "repeat with x from 2 to 4"
    you will get an error, because that's not a fully executable line.
    In that case, you'd manually select the full 'repeat loop' and press
    'enter' to execute.

B) From the 'Scripting' menu, you can choose 'tell...' and then select a
running app, and then you can execute lines that are directed at that app,
as if the line were in a 'tell' block targeting that app.

C) If you want your output in a different window, press Cmd-Opt-L to get an
output window.

It's a very convenient way to test pieces of code, particularly when you use
that 'tell...' feature to target an app, so you can check out app-specific
code.

--
Gary


 _______________________________________________
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: AppleScript4programmers
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: AppleScript4programmers (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Wow, AppleScript is tough!
  • Next by Date: Re: Changing the name of a file in the temporary items folder
  • Previous by thread: Re: AppleScript4programmers
  • Next by thread: Re: AppleScript4programmers
  • Index(es):
    • Date
    • Thread