• 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: read a file - Lion vrs Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: read a file - Lion vrs Tiger


  • Subject: Re: read a file - Lion vrs Tiger
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 27 Sep 2012 09:10:33 +1000

On 27/09/2012, at 3:26 AM, Jim Brandt <email@hidden> wrote:

   tell application "Finder" to set nm to name of eachFile
   tell application "Finder" to set knd to kind of eachFile as text 

I'd try to get rid of both of these lines -- the Finder is notoriously slow. You don't need it for the name -- you can use text item delimiters to extract it -- and kind is pointless these days -- you'd be better off filtering by file extension.

-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <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

References: 
 >read a file - Lion vrs Tiger (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: read a file - Lion vrs Tiger
  • Next by Date: Re: Mail: save attachment fails in Mountain Lion 10.8.2
  • Previous by thread: Re: read a file - Lion vrs Tiger
  • Next by thread: Re: read a file - Lion vrs Tiger
  • Index(es):
    • Date
    • Thread