• 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: NSFileManager's odd behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSFileManager's odd behavior
      • From: Takaaki Naganoya <email@hidden>
References: 
 >NSFileManager's odd behavior (From: Takaaki Naganoya <email@hidden>)
 >Re: NSFileManager's odd behavior (From: Shane Stanley <email@hidden>)
 >Re: NSFileManager's odd behavior (From: Takaaki Naganoya <email@hidden>)

  • Prev by Date: Re: NSFileManager's odd behavior
  • Next by Date: Distributing Automator actions via MacAppstore - Sandboxing, installation etc.
  • Previous by thread: Re: NSFileManager's odd behavior
  • Next by thread: Re: NSFileManager's odd behavior
  • Index(es):
    • Date
    • Thread