• 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
Silly newbie's looking for help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Silly newbie's looking for help
      • From: Andy Wylie <email@hidden>
    • Re: Silly newbie's looking for help
      • From: Mr Tea <email@hidden>
  • Prev by Date: Re: OS X Window toggle ToolBar?
  • Next by Date: Re: Silly newbie's looking for help
  • Previous by thread: Re: InDesign scripting conundrum No 1
  • Next by thread: Re: Silly newbie's looking for help
  • Index(es):
    • Date
    • Thread