The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Save OmniFocus Attachment (http://forums.omnigroup.com/showthread.php?t=23004)

Zettt 2011-12-31 10:02 AM

Save OmniFocus Attachment
 
1 Attachment(s)
Hello everyone,

I wrote a script to improve my workflow with file attachments. This is based on a script named [URL="https://github.com/Zettt/LaunchBar-Scripts/blob/master/Share%20on%20Dropbox.applescript"]Share on Dropbox[/URL].

I am aware that OmniFocus is able to handle file attachments by itself, but, as far as I know, these attachments are not synced across to iPhone/iPad. So I figured it would be a good idea to put attachments in my public Dropbox folder and a link in the notes field. This way when I'm on my iPhone and tap on a link, a browser opens and shows me the attachment.

How this script works:

It takes [I]selected items[/I] in Finder and [I]moves[/I] them to a specified location in your Dropbox folder.
The script saves these file locations in the UNIX form (e.g. [FONT="Courier New"]/Users/zettt/Dropbox/Public/Attachments/example.png[/FONT]) and then takes these URLs and replaces them with their [FONT="Courier New"]http://[/FONT] equivalent.

Notes:

You have to manually change [FONT="Courier New"]destination[/FONT] as well as [FONT="Courier New"]dropboxPublicPath[/FONT]!

Known Bugs:

Existing embedded attachments are removed. If somebody wants to figure this out. Please go ahead, I'd be glad to incorporate your change! I'm not going to resolve this "bug", because I don't use embedded attachments personally.


I hope someone else finds this useful too.

Cheers,
Andreas

whpalmer4 2011-12-31 11:15 AM

[QUOTE=Zettt;105546]

I am aware that OmniFocus is able to handle file attachments by itself, but, as far as I know, these attachments are not synced across to iPhone/iPad. So I figured it would be a good idea to put attachments in my public Dropbox folder and a link in the notes field. This way when I'm on my iPhone and tap on a link, a browser opens and shows me the attachment.

[/QUOTE]

Actually, file attachments are synced to iPhone/iPad, though whether they can be opened and viewed depends on what they are. This script neatly sidesteps some of the issues associated with embedding the attachments in your OmniFocus database, but it should be noted that you only have access to your attachments when you are connected to the Internet.


All times are GMT -8. The time now is 10:20 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.