• 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: How to start/restart the Finder from an AS app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to start/restart the Finder from an AS app?


  • Subject: Re: How to start/restart the Finder from an AS app?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 21 Dec 2007 06:04:36 -0500

On Dec 21, 2007 3:45 AM, Philip Aker <email@hidden> wrote:
I don't know if there's a specific event. I've been using 'quit' and 'activate' for years.

ignoring application responses
tell application "Finder" to quit
end ignoring

repeat
tell application "System Events"
if ( name of every application process does not contain "Finder") then
exit repeat
end if
end tell
end repeat

tell application "Finder" to activate

Ah, good.  I like the "wait until it's really gone" approach much better than "wait 10 seconds and hope it's really gone by then".  Although spinning in general makes me nervous, so I'd probably put a delay in there between polls.


Philip Aker
echo email@hidden @nl | tr a-z@. p-za-o.@




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (

This email sent to email@hidden



--
Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >Re: How to start/restart the Finder from an AS app? (From: "Stockly, Ed" <email@hidden>)
 >Re: How to start/restart the Finder from an AS app? (From: Christopher Nebel <email@hidden>)
 >Re: How to start/restart the Finder from an AS app? (From: "Mark J. Reed" <email@hidden>)
 >Re: How to start/restart the Finder from an AS app? (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Bash to AppleScript? (Is this possible to do with AS?)
  • Next by Date: OS X, 10.1 and Above - Append PDF files Using Applescript
  • Previous by thread: Re: Bash to AppleScript? (Is this possible to do with AS?)
  • Next by thread: Re: How to start/restart the Finder from an AS app?
  • Index(es):
    • Date
    • Thread