• 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: Lost in AppleScript Studio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lost in AppleScript Studio


  • Subject: Re: Lost in AppleScript Studio
  • From: Joseph Weaks <email@hidden>
  • Date: Mon, 15 Nov 2004 21:16:30 -0600

On Nov 15, 2004, at 9:04 PM, Ken Brooks wrote:
After five years' intermission, I returned to the world of AppleScript today.  And there I learned about AppleScript Studio and tried to use it.  I typed in the following elementary script:

tell application "Finder"
       say "I live."
   close the front window
 end tell

But it didn't run, or at least it didn't actually make the Finder close a window.  It just brought up a blank window of its own and stayed there.

Question: is AppleScript Studio even an appropriate vehicle for simple scripts like this?  Or only Cocoa/script hybrids?  Should I stick with ScriptEdit?

Ken,
If you are just wanting to create a faceless script that will run a process, don't bother with using Xcode/Project Builder/Applescript Studio. Just write it in Script Editor, or a third party editor such as Smile.
Applescript Studio is for creating an application with windows and buttons and text boxes and menus and the like. The application you created did exactly what it should have done. By default, any new ASS application has a single blank window. Furthermore, you did not have a button or menu item attached to a handler that would call the actual script snippet you were hoping would run. To learn more about what Applescript Studio is for, read through:
"About Building Applications with Applescript Studio", most likely found on your machine at:


file:///Developer/Documentation/AppleScript/Conceptual/ StudioBuildingApps/index.html#//apple_ref/doc/uid/TP30000889

Cheers,
Joe Weaks

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Lost in AppleScript Studio (From: Ken Brooks <email@hidden>)

  • Prev by Date: Why won't it paste?
  • Next by Date: [ANN] MathWallah v1.0
  • Previous by thread: Lost in AppleScript Studio
  • Next by thread: Why won't it paste?
  • Index(es):
    • Date
    • Thread