• 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: Tell OS X Application...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tell OS X Application...


  • Subject: Re: Tell OS X Application...
  • From: Steven Angier <email@hidden>
  • Date: Fri, 11 Jan 2002 11:22:25 +1100
  • Organization: Macscript.com

Simon Forster wrote:

> Using terms form...
> tell application <file path for URL Access Scription.app>...
>
> does what I expect but, in the process, turns a 4 line script into a 9
> line script.
>
> Any more elegant workarounds?

Using a combination of the Macscript.com Library and the infallible double-tell technique,
the following architecture is completely portable (watch line breaks):

property kURLAccessCreator : "uasc"

--first, activate the app file
ActivateApp(kURLAccessCreator)

--then, using double-tell, do what you like
tell application GetProcessName(kURLAccessCreator) to tell application "URL Access
Scripting"
--statements
end tell


Kind regards,

Steven Angier
Macscript.com


References: 
 >Tell OS X Application... (From: Simon Forster <email@hidden>)

  • Prev by Date: Trouble saving as Droplet in OSX
  • Next by Date: Re: script for Eudora and Bcc
  • Previous by thread: Re: Tell OS X Application...
  • Next by thread: Applescript over IP in OS X
  • Index(es):
    • Date
    • Thread