Re: NSFileManager's odd behavior
Re: NSFileManager's odd behavior
- Subject: Re: NSFileManager's odd behavior
- From: Shane Stanley <email@hidden>
- Date: Thu, 23 Jul 2015 09:09:11 +1000
On 23 Jul 2015, at 12:10 am, Takaaki Naganoya <email@hidden> wrote:
>
> By the way…there is other odd behavior for me. It is the *speed*.
>
> I thought AS2 is faster than AS1. But in fact, AS1 is about two times faster than AS2.
Like Axel, I get similar speeds. I wonder if the difference can be explained by the folders already being there for one script, and not the other -- that makes quite a difference.
You can also change this:
> set aDirText to "Desktop/test/" & (i as string)
>
> set aDirStr to (current application's NSString's stringWithString:aDirText)
> set dirPath to (homeDir's stringByAppendingPathComponent:aDirStr)
To this:
set aDirText to "Desktop/test/" & (i as string)
set dirPath to (homeDir's stringByAppendingPathComponent: aDirText)
in the second script. It may not seem much, but it makes quite a difference here.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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