print to pdf under OS 9.2
print to pdf under OS 9.2
- Subject: print to pdf under OS 9.2
- From: MR <email@hidden>
- Date: Mon, 31 Mar 2003 15:15:19 -0900
The print to pdf saga continues!!
The following Applescript works great under 10.2.4 within Filemaker (in
FM I saved as
"1.pdf" print to pdf under Page setup);
set sourceFolder to "destination folder"
tell application "Finder"
set theFile to first file in folder sourceFolder
set newFilename to the clipboard & ".pdf" as string
set name of theFile to newFilename
end tell
Under OS X I could see the 1.pdf being saved and immediately being
changed to the new name.
However, under OS 9.2 the above script did produce the 1.pdf file but
also produced two folders - one named "In" and another "Out".
The problem is that the above script is inside a loop to print many pdf
files and so, when it comes around to the second try through the loop I
get an error stating there is already an item with that name.
I need an applescript to move those two folders ("In" & "Out") to the
trash after each sequence through the loop. Is there a way to do this?
I've tried the following but it doesn't work.
tell app "Finder"
move folder "In" in "destination folder" to trash
end tell
Mike
_______________________________________________
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.