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

Re: basic textEdit question:


  • Subject: Re: basic textEdit question:
  • From: Neil Faiman <email@hidden>
  • Date: Sat, 1 Mar 2008 09:58:03 -0500

On Mar 1, 2008, at 4:07 AM, Raphael Matto wrote:

hi appleScript folk,

I'm just getting started & am having the most basic problem:

How do I call an appleScript script from textEdit?

I'm assuming that you've developed the script in Script Editor, and that you can use it by running it from Script Editor, and now you just want to be able to run it easily while you're using TextEdit, without having to start TextEdit.


First, save your script. User the "Script" file format (the default).

For the great majority of applications (including TextEdit) that don't have a script menu of their own, the easiest way to run scripts is with the systemwide script menu. This shows up as a black-and-white scroll icon in the right side of the menu bar, along with all the other menulets. If it isn't in your menu bar already, run "AppleScript Utility.app" from /Applications/AppleScript . In the preference dialog that appears, check "Show Script menu in menu bar".

Now all you have to do is to put your saved script in ~/Library/ Scripts. (If the Scripts folder doesn't already exist in your Library folder, you'll have to create it.) Then you can just select your script from the script menu at any time, and the system will run it for you. (To edit a script in the script menu, select it while holding down the option key, and it will open in Script Editor.)

For extra credit, you can have scripts that will only appear in the script menu when a particular application is in front. Create a folder named Applications in ~/Library/Scripts, and create a folder named TextEdit inside it. Now put your script in ~/Library/Scripts/ Applications/TextEdit. When TextEdit is frontmost, your script will show up in a section at the top of the script menu labeled "TextEdit Scripts"; when TextEdit isn't frontmost, the "TextEdit Scripts" (and your script in it) won't show up at all.

Regards,

	Neil Faiman
_______________________________________________
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: 
 >basic textEdit question: (From: "Raphael Matto" <email@hidden>)

  • Prev by Date: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • Next by Date: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • Previous by thread: basic textEdit question:
  • Next by thread: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • Index(es):
    • Date
    • Thread