• 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: How do I create a Applescript Interface for my Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I create a Applescript Interface for my Application


  • Subject: Re: How do I create a Applescript Interface for my Application
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 29 Jan 2009 08:30:35 +1100


On 29/01/2009, at 1:05 AM, Paul Taylor wrote:

Brian Christmas wrote:

On 28/01/2009, at 10:27 PM, Paul Taylor wrote:

I would like someone to be able to use applescript to send some files to my application for processing but I have no idea how to make my application visible to applescript, so that if the application is already running it can send some files to it, if it isnt running it is started and files
then sent to it. Could you point me in the right direction please ?


thanks paul

A simple.....

tell application "Finder"
   activate application "Adobe Photoshop CS4"
end tell

Replace "Adobe Photoshop CS4" with the name of your app.

This starts your app if it's not running, or simply activates it if it is already running.

You can also test the list of running processes, and only use the activate line if the app is not in the processes.

tell application "Finder"
   processes
end tell

Thats great thanks, I was thinking to actually get my program to receive files the easiest way would be for it to monitor/poll a folder/file that could be added to by the calling applescript, do you agree?

Paul

G'day Paul

It might be the easiest way, depending on the complexity of what you're doing with the files. If you are dealing with email attachments for instance, then it might be easier to strip them out of the email, store them in your folder, then call the next script.


Regards

Santa
_______________________________________________
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: 
 >How do I create a Applescript Interface for my Application (From: Paul Taylor <email@hidden>)
 >Re: How do I create a Applescript Interface for my Application (From: Brian Christmas <email@hidden>)
 >Re: How do I create a Applescript Interface for my Application (From: Paul Taylor <email@hidden>)

  • Prev by Date: Help scripting fax setting in System Preferences
  • Next by Date: Re: Automatic update by Email on Hard Disk percentage full
  • Previous by thread: Re: How do I create a Applescript Interface for my Application
  • Next by thread: Re: How do I create a Applescript Interface for my Application
  • Index(es):
    • Date
    • Thread