• 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
What I really want to say is:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What I really want to say is:


  • Subject: What I really want to say is:
  • From: Rachel Cogent <email@hidden>
  • Date: Sun, 23 Sep 2001 19:35:36 -0600

Change every file of every subfolder of selection from creator AppleScript
to creator Smile.

But for some unknown reason it's not that easy.

I think this is a self calling subroutine:

on walkMe(nextFolder)
try
tell application "Finder"
set folderList to every item of nextFolder
end tell
repeat with newFile in folderList
set tempFileType to the file type of newFile
if tempFileType is "fold" then
walkMe(newFile)
else
log name of newFile as string
end if
end repeat
end try
end walkMe

If so, I need to shoehorn it into this one:

tell application "Finder"
try
set sel to selection as alias
if (sel's kind) = "folder" then
try
set allFiles to every item of sel as alias list
on error errMsg number errNum
set allFiles to sel's files as alias as list
end try
end if
on error errMsg number errNum
tell me to display dialog errMsg & return & return & errNum
end try
end tell

To return an alias list of all files in all folders and subfolders.
Correct me if I'm wrong.


  • Follow-Ups:
    • Re: What I really want to say is:
      • From: "AppleScripter" <email@hidden>
    • Re: What I really want to say is:
      • From: Andy Wylie <email@hidden>
    • Re: What I really want to say is:
      • From: JollyRoger <email@hidden>
  • Prev by Date: Re: Make list of all files in folder?
  • Next by Date: Re: Make list of all files in folder?
  • Previous by thread: Re: Make list of all files in folder?
  • Next by thread: Re: What I really want to say is:
  • Index(es):
    • Date
    • Thread