• 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: Determine if file is already open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine if file is already open


  • Subject: Re: Determine if file is already open
  • From: Raymond P Reedy <email@hidden>
  • Date: Sat, 3 May 2008 15:18:23 -0400


On May 3, 2008, at 15:00 , email@hidden wrote:



Ray,

Here's one of many ways;

	tell application "Finder" to set appRunning to (processes whose name
= "Safari") ≠ {}
	ignoring application responses
		if not appRunning then launch application "Safari"
	end ignoring

On May 2, 2008, at 3:04 PM, Raymond P Reedy wrote:

Before I issue an "Open File" command to the Finder, how do I
determine if the file is already open?


Thanks. That tells me if the App is open. I want to know if particular file is already open before I issue an 'OPEN' command.


Ray

Raymond P Reedy
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
  • Follow-Ups:
    • Re: Determine if file is already open
      • From: deivy petrescu <email@hidden>
  • Prev by Date: "Opening" application Mail from the Dock
  • Next by Date: Re: Determine if file is already open
  • Previous by thread: Re: Determine if file is already open
  • Next by thread: Re: Determine if file is already open
  • Index(es):
    • Date
    • Thread