Telling a list of apps to activate?
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.