• 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: Finder scripting: OS 9 vs OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder scripting: OS 9 vs OS X


  • Subject: Re: Finder scripting: OS 9 vs OS X
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 15 Aug 2002 09:48:27 -0700

On Thursday, August 15, 2002, at 08:46 AM, Fox, Christopher B wrote:

Why does the following script work fine in Mac OS 9.2.2 (AS 1.8.3), but fail
in Mac OS X 10.1.5?

I'm not sure why it doesn't work, but the following does:

set theFolder to choose folder
tell application "Finder"
set theFiles to every file of theFolder
end tell
repeat with aFile in theFiles
set aFile to aFile as alias
set fileInfo to info for aFile
end repeat

The only part of the script that needs to reference the finder is "every file of"; also, if Choose Folder is inside the Tell Finder wrapper, the script forces you to make the Finder frontmost, so I made changes for that as well.

--Michelle

We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Speed help please!
  • Next by Date: Re: Finder scripting: OS 9 vs OS X
  • Previous by thread: Finder scripting: OS 9 vs OS X
  • Next by thread: Re: Finder scripting: OS 9 vs OS X
  • Index(es):
    • Date
    • Thread