Re: Checking on the existence of a file
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
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