• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PDF opening in Preview (was Save EPS page from Acrobat)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >PDF opening in Preview (was Save EPS page from Acrobat) (From: "Wadson, David" <email@hidden>)

  • Prev by Date: Re: Error -43 when attempting to write to file
  • Next by Date: Re: Why won't it paste?
  • Previous by thread: PDF opening in Preview (was Save EPS page from Acrobat)
  • Next by thread: [ANN] Announcing ScriptDB, The AppleScript database OSAX
  • Index(es):
    • Date
    • Thread