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

Re: Scripting Terminal ?


  • Subject: Re: Scripting Terminal ?
  • From: "L. Lee" <email@hidden>
  • Date: Wed, 29 Apr 2015 15:01:58 -0500
  • Thread-topic: Scripting Terminal ?

On 4/24/15, 12:19 PM, "Stockly, Ed" <email@hidden> wrote:


>I tried this and the windows came up with characters in some foreign
>language, which were no help.
>
>Also, one instance where I would really like to use a service (or an
>appleScript) is when I have a save file dialog open.
>
>I have a script that changes a string into the format we use for saving
>files, and usually I just have to apply it to the default string in that
>pops up in a save dialog. To use a service, I have to copy the text, go to
>another app (finder, usually) run the service and then go back.
>
>
>Ed Stockly
>LA Times
>
>
>

I created the following in Script Editor and saved it as a script file named "Append month to selected.scpt”.


on process(input)
	set vartag to (input as text)
	set vartag to vartag & "," & space & (month of (current date)) as string
	return vartag
end process



I opened ThisService.app and used it to open the "Append month to selected.scpt” file, then clicked “Test”, then clicked "Finish testing and create service”. Then I began to save a new TextEdit document and selected “Untitled” in the name field of the save dialog, right-clicked the selection and selected services>Append month to selected. What then appeared in the Name field of the save dialog was “Untitled, April”.

Laine Lee
>


 _______________________________________________
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: Scripting Terminal ?
      • From: "Stockly, Ed" <email@hidden>
References: 
 >Re: Scripting Terminal ? (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: The Case of the Missing Case Statement
  • Next by Date: AppleScript and Illustrator, including some history
  • Previous by thread: Re: Scripting Terminal ?
  • Next by thread: Re: Scripting Terminal ?
  • Index(es):
    • Date
    • Thread