• 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: Checking on the existence of a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking on the existence of a file


  • Subject: Re: Checking on the existence of a file
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 30 Nov 2012 10:39:30 -0600

Hey Yvan,

On Nov 30, 2012, at 09:41, koenig.yvan <email@hidden> wrote:
Some of you alreday know that Iam pig headed.

That's possible.  :)

I retrieve the Chris Nebel's message to which I thought :

Nebel's input is *always* worth paying attention to, but one doesn't always have to agree with it.

--------------------------------------------------

set f to "/Users/chris/Downloads/Soulver 2.2.8.zip"

--------------------------------------------------

# System Events NOT running:

tell application "System Events"
set _flag to f exists
end tell

--> 2.22 seconds

# System Events RUNNING:

--> ~ 0.084 seconds

--------------------------------------------------

# Even with the coercion it's very fast.

alias POSIX file f

--> 0.0007 seconds

--------------------------------------------------

I never use System Events unless I must.

(Back when it kept running after first activation it wasn't so bad.  Now that it auto-quits it's a pain.)

--
Best Regards,
Chris

 _______________________________________________
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: Checking on the existence of a file (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: Checking on the existence of a file
  • Next by Date: Script for Uploading iOS Apps
  • Previous by thread: Re: Checking on the existence of a file
  • Next by thread: Mail navigation script
  • Index(es):
    • Date
    • Thread