I hunted earlier for a way to examine how my folder action could be observed, bu the links appear to be expired.
I’ve built a static script that moves a file from the Acrobat Out folder to a folder on the server.
But when I comment out the static parts and enable the folder action code, I get air biscuits.
10.4.8 on PowerPC
After perusing the BBS, I cannot see what I’m doing wrong.
--set this_folder to "Homer:Users:Shared:acrobs homer:proofs:Out:"
--set this_file to "7479.03 Kevin Bryant bc proof.pdf"
set zacrob to "MrJr:Zacrobs:"
on adding folder items to this_folder after receiving these_items
tell application "Finder"
--move file (this_folder & this_file) to (zacrob & this_file) as alias replacing yes
repeat with this_file from 1 to count of these_items
move file this_file of folder this_folder to folder zacrob replacing yes
end repeat
end tell
end adding folder items to
Does this work? (totally untested btw, I rarely use the Finders move, copy, delete etc. functions)
set zacrob to "MrJr:Zacrobs:"
on adding folder items to this_folder after receiving these_items
tell application "Finder"
repeat with this_file in these_items
move file this_file of folder this_folder to folder zacrob replacing yes
end repeat
end tell
end adding folder items to
property zacrob : "MrJr:Zacrobs:"
on adding folder items to this_folder after receiving these_items
tell application "Finder"
--move file (this_folder & this_file) to (zacrob & this_file) as alias replacing yes
repeat with this_file from 1 to count of these_items
move file this_file of folder this_folder to folder zacrob replacing yes
end repeat
end tell
end adding folder items to
use a property because when the handler is called, the set zacrob to line will never be executed
Edit: or, short version:
property zacrob : "MrJr:Zacrobs:"
on adding folder items to this_folder after receiving these_items
tell application "Finder" to move these_items to folder zacrob replacing yes
end adding folder items to
No, but thanks for offering it. I have even tried attaching it to another folder to be sure that the Acrobat Out folder didn’t have something funny going on, thanx, sam
It certainly worked when I dropped a file into this folder via the finder, but it doesn’t when I use the Acrobat Distill folders. Not wanting to insult your intelligence, but the Distiller program uses hot folders of In and Out to convert Postscript to a PDF.
Of course, when it’s finished, I want the PDF moved to Zacrobs as you see.
So, it seems to me that the dumping of the pdf into the Out folder is not seen by the Finder, thus no Folder Action?