Silly newbie's looking for help
Silly newbie's looking for help
- Subject: Silly newbie's looking for help
- From: "Simeon Kirov" <email@hidden>
- Date: Sat, 13 Apr 2002 19:03:40 +0300
Hi all,
I'm complete newbie in AS and I want to do a very simple task. I want to
check if certain folder exists. If the folder is there, launch an
application in foreground, otherwise launch different application. Here is
the code I wrote:
tell application "Finder"
if folder "MRJ Libraries" of extensions folder exists then
tell application "App.MAC"
run
end tell
else
tell application "Installer"
run
end tell
end if
end tell
When I run the script it hangs for 3-4 minutes and then proudly announces
"AppleEvent timed out.". After I close the message, the appropriate
application launches in the background.
If I use "launch" instead of "run", one of the applications starts
correctly, but still in the background. The other one also launches, but
again after 3-4 minutes delay. Both applications are not scriptable. The
script is for Mac OS 8/9.
In resume: the objectives are somewhat achieved, but after considerable
waiting and some error messages.
Is there another way to run an application with AS in foreground, without
delay and without error messages?
Thank you for your answers!
Simeon
_______________________________________________
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.