Go Back   The macosxhints Forums > OS X Help Requests > AppleScript



Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Old 03-10-2012, 12:04 PM   #1
frankeman90
Prospect
 
Join Date: Apr 2011
Posts: 8
Mail rule to open url and save content of that webpage as pdf in local folder

I am trying to create a workflow that includes rules in OSX mail with applescript. Mission is to be able to save webpages from my iPhone on my mac as pdf, possibly even tagged for future searches.

Why I want this: I often find content on the web when I am on my iPhone that I would like to archive for future reference (save the page as pdf on my mac and that way make it searchable with spotlight). I am a heavy information user and have tried many methods, but all seem to break because I never have time to follow up my own reminders and go through email, open, save as pdf and tag.
I am therefore looking for a way that lets me only forward the actual webpage from my iphone to mail, tag it with something ("@") that wakes the rule. I let applescript to take care of the rest. (Bonus if its possible to also tag document/filename with words from email content field.)

Unfortunately I am not that in to applescript as I should. Have found this on the web, but thats just half the part (found on http://is.gd/wWrsz2).

And I dont know if what I want is even possible to accomplish?

This is what my code looks like right now:

Code:
using terms from application "Mail"
on perform mail action with messages theMessages for rule Savepdf
tell application "Mail"
repeat with theMessage in theMessages
set theText to paragraph 1 of (content of theMessage)
set the clipboard to theText
end repeat
end tell

open location theText

end perform mail action with messages
end using terms from
frankeman90 is offline   Reply With Quote
Reply

Tags
mail, pdf, rule, spotlight, url

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 06:47 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.