• 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: Paul Taylor <email@hidden>
  • Date: Wed, 28 Jan 2009 14:05:46 +0000

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
_______________________________________________
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: How do I create a Applescript Interface for my Application
      • From: Brian Christmas <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>)

  • Prev by Date: Re: AppleScript-Users Digest, Vol 6, Issue 44
  • Next by Date: Re: Changes in osascript?
  • 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