• 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: Converting Tiff's to PDF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting Tiff's to PDF


  • Subject: Re: Converting Tiff's to PDF
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 08 Jan 2009 12:41:57 -0800
  • Thread-topic: Converting Tiff's to PDF

On 1/8/09 12:25 PM, "Michelle Steiner" <email@hidden> wrote:

> On Jan 8, 2009, at 12:58 PM, Paul Berkowitz wrote:
>
>> On the other hand, the way to do it in GC is not immediately obvious
>> - it's
>> erroring my 'save window 1 as "PDF "' but there must be some way to
>> do it in
>> GC.
>
> You don't need the quotes around PDF:
>
> tell application "GraphicConverter"
> save window 1 in ((path to desktop as text) & "nameoffile.pdf") as PDF
> end tell

Thanks. Peculiar - I should have checked the 'as' enumeration in GC's
dictionary - definitely not the standard parameter. (Normally PDF without
quotes is not defined as a keyword, but it certainly is here, along with
many others.)
>
> One problem I found is that the "makecopy" option for Save doesn't
> work; it still converts the original file instead of making a PDF copy
> of it, hence my renaming the document.  Also the dictionary says that
> the "in" option is an alias, but I found that it requires a string to
> a valid path.

That's standard in many, many applications that use the Standard Suite's
'save' command. It's incorrectly defined in the Standard Suite to be an
alias - it can't be, since the file (usually) doesn't exist yet. One or two
apps define it as some sort of file, but most make use of the built-in
AppleScript coercion - in this context only, the 'in' parameter of 'save' -
of text filepath to file specifier. (Under the hood, this changed from the
old 'file specification' of pre-OS X days to the new 'file URL' type, but it
only works this way, using the file path text coercion.)



--
Paul Berkowitz


 _______________________________________________
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

  • Follow-Ups:
    • Re: Converting Tiff's to PDF
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Converting Tiff's to PDF (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Converting Tiff's to PDF
  • Next by Date: Re: Converting Tiff's to PDF
  • Previous by thread: Re: Converting Tiff's to PDF
  • Next by thread: Re: Converting Tiff's to PDF
  • Index(es):
    • Date
    • Thread