• 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: launch/activate application from variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launch/activate application from variable


  • Subject: Re: launch/activate application from variable
  • From: Emmanuel <email@hidden>
  • Date: Wed, 14 May 2003 11:47:17 +0200

At 9:30 AM +0200 14/05/03, peter wrote:
>what syntax should be used to launch or activate an application from a
>variable?
>ie if my application is a variable contained within the field "name" of
>a record called "this_record"
>can I do something along the lines of:
>
>tell application (name of this_record)
> activate
>end tell

Yes you can. OMM the following works.

--------------------
set this_record to {name:"Safari"}
tell application (name of this_record)
activate
end tell
--------------------

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >launch/activate application from variable (From: peter <email@hidden>)

  • Prev by Date: Re: moving files to a date named folder
  • Next by Date: Re: Order of operations (was: Eigenvalues &/or eigenvectors,
  • Previous by thread: launch/activate application from variable
  • Next by thread: Re: Putting port number into AERecord
  • Index(es):
    • Date
    • Thread