• 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: Folder Action to create Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder Action to create Archive


  • Subject: Re: Folder Action to create Archive
  • From: yvan-koenig <email@hidden>
  • Date: Sun, 13 Mar 2005 21:02:03 +0100


Le 13 mars 2005 , à 20:22, kai a écrit :

You might like to try checking ditto on your machine to see what you get there. Oh yeah - in case it helps... since the script failed silently when run in situ, I resorted to testing it in Script Editor. To do this, I simply commented out the lines:

----------------
on adding folder items to this_folder after receiving these_items
end adding folder items to
----------------

... and added a couple up front something like:

----------------
set this_folder to alias "Path:to:archive folder:"
set these_items to {alias "Path:to:archive folder:target file.JPG"} (* don't forget the braces *)
----------------


That at least allowed me to see some error messages (of which there were several).


Good tip !

This gives the ability to pass the history as I got it under 10.3.8.

tell application "Finder"
exists folder "Done" of alias "Macintosh HD:Users:yvankoenig:Desktop:dossier sans titre:"
true
get folder "Done" of alias "Macintosh HD:Users:yvankoenig:Desktop:dossier sans titre:"
alias "Macintosh HD:Users:yvankoenig:Desktop:dossier sans titre:Done:"
end tell
tell current application
info for alias "Macintosh HD:Users:yvankoenig:Desktop:dossier sans titre:pagination (copie).scpt"
{name:"pagination (copie).scpt", creation date:date "11 mars 2005 20:22:25", modification date:date "12 mars 2005 16:15:21", icon position:{0, 0}, size:2.663E+4, folder:false, alias:false, name extension:"scpt", extension hidden:true, visible:true, package folder:false, file type:"osas", file creator:"ToyS", displayed name:"pagination (copie).scpt", default application:alias "Macintosh HD:Applications:AppleScript:Script Editor.app:", kind:"Script", locked:false, busy status:false, short version:"", long version:""}
do shell script "/usr/bin/ditto -c -k -rsrc --keepParent '/Users/yvankoenig/Desktop/dossier sans titre/pagination (copie).scpt' '/Users/yvankoenig/Desktop/dossier sans titre/Done/pagination (copie).scpt.zip'"
""
end tell


and the file is correctly zipped in the "Done" folder.

Of course, the original remains available !

Yvan KOENIG


_______________________________________________ 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
References: 
 >Re: Folder Action to create Archive (From: kai <email@hidden>)

  • Prev by Date: Re: Scripting Energy Saver to Sleep Display Now?
  • Next by Date: Re: Folder Action to create Archive
  • Previous by thread: Re: Folder Action to create Archive
  • Next by thread: Re: Folder Action to create Archive
  • Index(es):
    • Date
    • Thread