Krzysztof M. Perfect web archive script - help needed
Mar 10, 2009; 03:01
Krzysztof M.
Perfect web archive script - help needed
Hello, I've been using this script for a while to store webarchives in YJ, but I'd like to extend it to has also the possibility to add a comment to the item (maybe together with the a tag in one dialog box) and also wrap it up with a growl notification when the import to YJ is done. Maybe somebody can help me with that or already have this kind of script.
set res to (display dialog "Add tag to item?" default answer "" buttons {"No", "Yes"} default button 2)
if button returned of res is "Yes" then set res to text returned of res set flg to false else set flg to true end if
tell application "Safari" set theURL to URL of document 1 set theName to name of document 1 end tell
tell application "Yojimbo" if flg then make new web archive item with contents theURL with properties {name:theName, flagged:flg} else set itmID to (make new web archive item with contents theURL with properties {name:theName, flagged:flg}) add tags res to itmID end if end tell
I am not sure about GROWL, but maybe notification might look like that?
on tellGrowl(itmID, theName, theURL) -- the growl notification routine global growlIsRunning if growlIsRunning then -- is growl running? tell application "GrowlHelperApp" notify with name itmID title theName description theURL application name appName with sticky end tell end if end tellGrowl
-- Krzysztof M. Blog: http://my.opera.com/mkrzych
Mar 10
Krzysztof M. Re: Perfect web archive script - help needed
Mar 10, 2009; 05:43
Krzysztof M.
Re: Perfect web archive script - help needed
Mar 11
rickdude Re: Perfect web archive script - help needed
Mar 11, 2009; 19:20
rickdude
Re: Perfect web archive script - help needed
Mar 12
Krzysztof M. Re: Perfect web archive script - help needed
Mar 12, 2009; 13:34
Krzysztof M.
Re: Perfect web archive script - help needed
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!