Re: PDF Workflow script
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.