• 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 Workflow script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PDF Workflow script


  • Subject: Re: PDF Workflow script
  • From: Martin Orpen <email@hidden>
  • Date: Tue, 27 Jul 2004 08:37:53 +0100

on 27/7/04 2:41 am, Shane Stanley at email@hidden wrote:

> On Mon, 26 Jul 2004 23:05:30 +0100, Martin Orpen wrote:
>
>> When I run the script via the new print dialog (enabled by adding a folder
>> called "PDF Services" in the Library folder) I just get an error: "Error
>> while printing."
>
> Did you save it as an app? I haven't tried for several releases, but last
> I looked I couldn't get it to work with compiled scripts, even though it
> looked like they should work.

Bloody AppleScript :-)

I saved it as an app first, but it wouldn't make an attachment and didn't
throw up any error messages.

I then re-read the PDF and it stated that the script should be a compiled
script so I did that and it generated the print error.

With your hint I've gone back to the app version and have found that there
is a mistake in it (it says "{file:aFile}" rather than "{file name:aFile}")
and I've also changed the position of where the thing is attached:


on open these_items
tell application "Mail"
set composeMessage to (make new outgoing message with properties
{visible:true})
tell composeMessage
tell content
repeat with aFile in these_items
make new attachment with properties {file
name:aFile} at after the last paragraph
end repeat
end tell
end tell
end tell
end open


Which, for those who haven't experimented, saved as an app and placed in a
folder called "PDF Services" in either Library allows me to send PDFs from
the print dialog.

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.


  • Follow-Ups:
    • Re: PDF Workflow script
      • From: Paul Skinner <email@hidden>
References: 
 >Re: PDF Workflow script (From: "Shane Stanley" <email@hidden>)

  • Prev by Date: Re: PDF Workflow script
  • Next by Date: Re: PDF Workflow script
  • Previous by thread: Re: PDF Workflow script
  • Next by thread: Re: PDF Workflow script
  • Index(es):
    • Date
    • Thread