Simon
2007-07-05, 04:08 AM
Get it here (http://homepage.mac.com/s.babayan/filechute/OW_to_OF-script.zip) whilst it's up (zip file includes instructions), or make a new script from this and put it in "~/Library/Scripts/Applications/OmniWeb":
property actionPrefix : "Read this: "
tell application "OmniWeb"
try
if not (exists browser 1) then error "No browser is open."
set this_url to address of browser 1
set this_title to the name of browser 1
tell front document of application "OmniFocus"
make new inbox task with properties {name:(actionPrefix & this_title), note:this_url}
end tell
end try
end tell
I know next to nothing about scripts, so feel free to fix this, or use it at your own risk! It seems to work OK for me so far :D
Note: I would have liked to make the "name" hyperlink to the URL... does anyone want to share their wisdom?
property actionPrefix : "Read this: "
tell application "OmniWeb"
try
if not (exists browser 1) then error "No browser is open."
set this_url to address of browser 1
set this_title to the name of browser 1
tell front document of application "OmniFocus"
make new inbox task with properties {name:(actionPrefix & this_title), note:this_url}
end tell
end try
end tell
I know next to nothing about scripts, so feel free to fix this, or use it at your own risk! It seems to work OK for me so far :D
Note: I would have liked to make the "name" hyperlink to the URL... does anyone want to share their wisdom?