Re: Repeat Routine need help!
Re: Repeat Routine need help!
- Subject: Re: Repeat Routine need help!
- From: Graff <email@hidden>
- Date: Fri, 11 Jun 2004 18:01:19 -0400
Hmm, I would do it something like this:
----
property inFolder : (path to desktop as string) & "In:"
property outFolder : (path to desktop as string) & "Out:"
global originalLocation
global theName
on idle
set shouldQuit to false
tell application "Finder"
display dialog "checking"
if (file (outFolder & theName) exists) then
move file (outFolder & theName) to originalLocation
set shouldQuit to true
end if
end tell
if shouldQuit then quit
-- repeat the idle handler every 5 seconds
return 5
end idle
on open fileList
-- this will only handle 1 file at a time
set theFile to first item of fileList
tell application "Finder"
if ((folder inFolder exists) and (folder outFolder exists)) then
set originalLocation to container of theFile
set theName to name of theFile
move theFile to folder inFolder
end if
end tell
end open
----
- Ken
On Jun 11, 2004, at 4:57 PM, PiercyWorld wrote:
I need help creating a Repeat routine. I want to move a PDF file to an
"in" hot folder (Folder Action) using a droplet.. Once the file is
printed I have the Folder Action script move the PDF to "out". I want
the droplet to wait until the file was printed and then see it in the
"out" and move it back to the orig location. I cant get the Droplet to
wait. Can anyone help? Thanks in Advance.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.