• 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: Droplet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Droplet


  • Subject: Re: Droplet
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 5 Apr 2006 15:20:19 -0700

Well, I wound up doing it with a loop.

on open (ItemList)
set FileList to {}
set FolderList to {}
tell application "Finder"
repeat with thisItem in ItemList
if kind of thisItem is "folder" then
copy thisItem to end of FolderList
else
copy thisItem to end of FileList
end if
end repeat
end tell


my processFiles(FileList)
repeat with thisFolder in FolderList
my splitFoldersFromFiles(thisFolder)
end repeat
end open

on splitFoldersFromFiles(inputFolder)
tell application "Finder"
my processFiles(get files of inputFolder)
set FolderList to folders of inputFolder
repeat with thisFolder in FolderList
my splitFoldersFromFiles(thisFolder)
end repeat
end tell
end splitFoldersFromFiles

on processFiles(FileList)
repeat with thisFile in FileList
tell application "Finder"
set extension hidden of thisFile to true
end tell
end repeat
end processFiles

-0- Michelle
-- 
Chastity always takes its toll. In some it produces pimples; in others, sex laws. -- Karl Kraus

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Droplet
      • From: Luca Pozzato <email@hidden>
    • Re: Droplet
      • From: Luca Pozzato <email@hidden>
    • Hours of CPU operation
      • From: Bill Briggs <email@hidden>
  • Prev by Date: Re: Do shell and ssh
  • Next by Date: Re: Converting Date-Time
  • Previous by thread: ANN:FTP Droplet Toaster
  • Next by thread: Hours of CPU operation
  • Index(es):
    • Date
    • Thread