• 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: hello and a question... :-)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hello and a question... :-)


  • Subject: Re: hello and a question... :-)
  • From: julifos <email@hidden>
  • Date: Fri, 28 Mar 2003 21:46:09 +0100

> Hi -
>
> I'm just getting on board with Applescript and AS Studio, after many
> years of not having looked at it. (Just cracked out the old books -
> with floppies in the back :-) ).
>
> I'm looking to do some automation testing on OS X for the company I
> work for, Viewpoint, which makes a browser plugin for displaying 3D
> content, among other things.
>
> Very impressed with AS studio so far - wondering if someone can tell
> me how to launch an application and if it's possible to get a return
> value from it when it's done. Basically I want to launch an
> installer, and when it's finished installing, I want to run a routine
> that checks to see that everything ended up where it's supposed to
> be. I've tried launch, run and activate with the path to the
> application and so far have not had any luck - only an error that
> isn't very helpful.
>
> any help appreciated, and if anyone else is using AS for automated
> testing, or knows any good resources for this, please let me know...
>
> thanks -
>
> Michael

I'd launch the installer, check every 5 seconds whether is it running or
not, then (supposed it finished its work) make my own checkings...

on run
tell app "Finder" to open alias "path:to:installer"
end run

on idle
tell application "Finder" to name of processes
if "name of installer" is not in contents of result then
--> check stuff
end if
return 5 --> check every 5 seconds if installer is not running
end idle

JJ
_______________________________________________
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: Truly weird, easy to replicate behaviour...
  • Next by Date: Re: close all programs
  • Previous by thread: hello and a question... :-)
  • Next by thread: Re: close all programs
  • Index(es):
    • Date
    • Thread