• 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
Telling a list of apps to activate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Telling a list of apps to activate?


  • Subject: Telling a list of apps to activate?
  • From: James Reynolds <email@hidden>
  • Date: Tue, 28 May 2002 10:08:29 -0600

I have tried various methods to tell a list of apps to activate, and I can't get dependable results. The following works with a vanilla AppleScript compiled as an app, but it doesn't work when it is part of a larger AppleScript Studio application.

set appList to {"iTunes", "Microsoft Word", "Microsoft Excel", "Internet Explorer"}
repeat with i in appList
with timeout of 1 second
try
tell application i to activate
end try
end timeout
end repeat

It is failing at iTunes and I am assuming it is failing because it is trying to ask where it is (however in AppleScript Studio, it does not actually ask where the app is, it throws an error "No user interaction allowed", which is what I am getting). Word, Excel, and IE are launched without problem.

I have tried "using terms from", but what app should I use terms from? I tried "Finder", and I still get the error. I also tried telling the Finder to activate the app.

Anyone know a better way to tell a list of apps to activate? Shall I just use the path to the app (I wanted to find an easier way before I fall back on that)?

--

Thanks,

James Reynolds
University of Utah
Student Computing Labs
email@hidden
801-585-9811
_______________________________________________
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.

  • Prev by Date: Re: "info for"
  • Next by Date: Moving windows
  • Previous by thread: Re: Smile changing case/formatting
  • Next by thread: Re: Telling a list of apps to activate?
  • Index(es):
    • Date
    • Thread