Patrick Gilmour How to send PDFs to Adobe Reader with Applescript
Jan 11, 2007; 03:42
Patrick Gilmour
How to send PDFs to Adobe Reader with Applescript
Hi,
I've adapted Jim's email attachment script very slightly to open PDF archives in Adobe Reader 8. The following script works. It would be great to be able to add a little "if filetpye is PDF (or archive)" clause to it, to stop it sending anything but PDFs. Any scripters know how to do this? I'd work it out but don't have hours to spend today!
tell application "Yojimbo" set _targets to (selected items of browser window 1) set _files to (export _targets to (path to temporary items)) as list end tell tell application "Adobe Reader" repeat with _f in _files set _f to POSIX path of _f open _files end repeat end tell tell application "Finder" move _files to trash end tell
On Jan 10, 2007, at 18:46 PM, Jim Correia wrote:
> The question of how to email an item has come up before. Here is an > example script which will email the selected items as attachments > using Apple Mail. Save to your scripts folder and invoke with the > system wide script menu, or your favorite utility (e.g. Fast Scripts.) > > - Jim > > --begin script-- > > > (* > Creates a new outgoing message with the selected Yojimbo items > attached. > Apple Mail version > *) > > tell application "Yojimbo" > set _targets to (selected items of browser window 1) > set _files to (export _targets to (path to temporary items)) as list > end tell > > tell application "Mail" > set _message to make new outgoing message > tell _message > set visible to true > tell content > repeat with _f in _files > (* Mail should accept a typeFileURL file reference here, but > doesn't. A POSIX path works. *) > set _f to POSIX path of _f > make new attachment with properties {file name:_f} at after the > last paragraph > end repeat > end tell > end tell > activate > end tell > > tell application "Finder" > move _files to trash > end tell > > > -- > ------------------------------------------------------------------ > This message is sent to you because you are subscribed to > the mailing list <yojimbo-talk@barebones.com>. > To unsubscribe, send mail to: <yojimbo-talk-off@barebones.com> > List archives: <http://www.listsearch.com/yojimbotalk.lasso> > Have a feature request, or not sure if the software's > workingcorrectly? Please send mail to: <support@barebones.com>
-- ------------------------------------------------------------------ This message is sent to you because you are subscribed to the mailing list <yojimbo-talk@barebones.com>. To unsubscribe, send mail to: <yojimbo-talk-off@barebones.com> List archives: <http://www.listsearch.com/yojimbotalk.lasso> Have a feature request, or not sure if the software's working correctly? Please send mail to: <support@barebones.com>
Jan 11
Jim Correia Re: How to send PDFs to Adobe Reader with Applescript
Jan 11, 2007; 03:57
Jim Correia
Re: How to send PDFs to Adobe Reader with Applescript
Jan 11
Patrick Gilmour Re: How to send PDFs to Adobe Reader with Applescript
Jan 11, 2007; 05:47
Patrick Gilmour
Re: How to send PDFs to Adobe Reader with Applescript
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!