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

Re: Copying folder structures


  • Subject: Re: Copying folder structures
  • From: Skeeve <email@hidden>
  • Date: Sun, 23 Dec 2007 01:33:19 +0100

Kurt Klamp wrote:
Originally i was looking for a plain AS solution because i'm not familiar with the shell script thingies at all.
So here we go:

on run
set s_folder to alias "Your:Original:Folder:"
set t_folder to alias "Your:Target:Folder:" -- MUST exist! & SHOULD be empty
clone(s_folder, t_folder)
end run


to clone(s_folder, t_folder)
tell application "Finder"
set o_folders to folders of s_folder
repeat with o_folder in o_folders
set nme to name of o_folder
my clone(o_folder, make new folder at t_folder with properties {name:nme})
end repeat
end tell
end clone
_______________________________________________
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: Copying folder structures
      • From: Kurt Klamp <email@hidden>
References: 
 >Copying folder structures (From: Kurt Klamp <email@hidden>)
 >Re: Copying folder structures (From: "Mark J. Reed" <email@hidden>)
 >Re: Copying folder structures (From: Skeeve <email@hidden>)
 >Re: Copying folder structures (From: "Mark J. Reed" <email@hidden>)
 >Re: Copying folder structures (From: Kurt Klamp <email@hidden>)

  • Prev by Date: Re: Copying folder structures
  • Next by Date: Re: Copying folder structures
  • Previous by thread: Re: Copying folder structures
  • Next by thread: Re: Copying folder structures
  • Index(es):
    • Date
    • Thread