Re: opening PowerPoint presentation without bringing to front?
Re: opening PowerPoint presentation without bringing to front?
- Subject: Re: opening PowerPoint presentation without bringing to front?
- From: Laine Lee <email@hidden>
- Date: Thu, 13 Aug 2009 12:36:36 -0500
- Thread-topic: opening PowerPoint presentation without bringing to front?
On 3/10/09 12:31 PM, "Paul Berkowitz" <email@hidden> wrote:
> tell application "Microsoft PowerPoint"
> launch
> tell application "System Events"
> repeat while (not (exists (process "Microsoft PowerPoint")))
> delay 0.1
> end repeat
> end tell
> open alias "PB iMac Main:Users:berkowitz:Documents:Presentation1.pptx"
> end tell
>
>
> You could try it with and without the delay.
But there's another caveat to any approach for background launching which
incidentally I think represents one of the most insidious obstacles to
automation ever. It's that confounded "... Are you sure you want to open
it?" warning that pops up whenever you try to launch an application after
updating it or clearing caches (which I consider to be an essential periodic
maintenance routine) or who knows what else. If you launch it in the
background and its previous launch info is missing, then it's just gonna
bounce in the Dock until you bring it forward and click "Open".
--
Laine Lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden