attempt to move files from Unix path finds 0 files?
attempt to move files from Unix path finds 0 files?
- Subject: attempt to move files from Unix path finds 0 files?
- From: William Adams <email@hidden>
- Date: Fri, 18 Jan 2013 08:40:41 -0500
Okay, I'm trying to work up a Folder Action which will move files to a folder on a different disk.
I have the files:
/var/spool/cups-pdf/williamadams/job_614-Ad_Ledge_JACC_1_8_13_pdf.pdf
/var/spool/cups-pdf/williamadams/job_615-Microsoft_Word_-_TP_U_of_Chicago__331489_doc.pdf
but running this test script:
set destFolder to ((POSIX file "/Volumes/AraxiVolume_HW11913_T/Jobs/Elsevier_Classifieds_T/UserDefinedFolders/Input Files") as alias)
set sourceFolder to ((POSIX file "/var/spool/cups-pdf/williamadams") as alias)
set added_items to contents of sourceFolder
tell application "Finder"
repeat with oneItem in items of added_items
move oneItem to folder destFolder
end repeat
--delete every item of this_folder
end tell
has the result:
tell application "Finder"
count every item of alias "Macintosh HD:private:var:spool:cups-pdf:williamadams:"
--> 0
end tell
What is wrong?
William
--
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.
_______________________________________________
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