Re: PDF opening in Preview (was Save EPS page from Acrobat)
Re: PDF opening in Preview (was Save EPS page from Acrobat)
- Subject: Re: PDF opening in Preview (was Save EPS page from Acrobat)
- From: "Shane Stanley" <email@hidden>
- Date: Wed, 17 Nov 2004 12:05:42 +1100
On Tue, 16 Nov 2004 19:55:40 -0500, Wadson, David wrote:
>tell application "Finder"
> set filesToProcess to every file of sourceFolder whose file type is
>"PDF "
>end tell
At this stage, filesToProcess is a list of Finder references. So the
simple answer is to make them aliases like so:
tell application "Finder"
set filesToProcess to every file of sourceFolder whose file type is
"PDF " as alias list
end tell
But there's a problem -- if there's only one file, you get an error. So
you need to use:
tell application "Finder"
try
set filesToProcess to every file of sourceFolder whose file type is
"PDF " as alias list
on error
set filesToProcess to every file of sourceFolder whose file type is
"PDF " as alias as list
end try
end tell
Then you're passing aliases, and Acrobat will do the file opening.
--
Shane Stanley <email@hidden>
_______________________________________________
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