The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Scripts to open project folders and notes files Thread Tools Search this Thread Display Modes
I found my error...I changed the Dropbox part but not the home part....Thanks for the quick response and help.
 
Quote:
Originally Posted by whpalmer4 View Post
Yes. As I posted previously, change this line:

Code:
set projectsDir to (path to documents folder as text) & "Reference" & ":" -- Path to projects folder (change this as you like)
to

Code:
set projectsDir to (path to home folder as text) & "Dropbox" & ":" -- Path to projects folder (change this as you like)
and you should be set. You need to create the Projects folder in your Dropbox folder before running the script, and you'll need to create a folder for each project by running the Project Folder script on each one.
You guys ready for a really dumb question. I mean, this is one of those questions where once I know the answer, I'll have to kick myself for not knowing.

So I've read this thread, tried things on my own but I'm still stuck. I cannot get the two scripts (Folder and Notes) to point to a Dropbox folder. I can only successfully point it to my Documents folder and that's because I do nothing to alter the original script. I suspect it's the syntax I'm using when trying to add in my new file path.

So I'll show you what I'm doing.

Original:
set projectsFolderName to "Projects" -- name for main projects folder
set projectsPath to (path to documents folder as text) -- path to main projects folder
I tried this:
set projectsFolderName to "OmniFocus Projects" -- name for main projects folder
set projectsPath to ~/Users/*myname*/Dropbox/Documents -- path to main projects folder
... but this does not work. Nothing happens. So again, I think it's because it's the syntax I'm using to put the file path name in is not correct. I know nothing about Applescript so forgive me for being a dummy. So in it's simplest form: what am I doing wrong?

Thanks for your time.
 
~/Users/*myname*/Dropbox/Documents

doesn't work as a path because ~ is automatically expanded by the system to /Users/[username]

You need either:
/Users/[username]/Dropbox/Documents
or the standard abbreviation:
~/Dropbox/Documents
--
 
Hey thanks. So I tried that variation and I get the first dialog saying that the folder doesn't exist and would I like to create it, but then the script goes no further after I say yes. The folder is not created at all.

All I changed was the file path but now the script doesn't work at all?
 
Druido posted a modified version that creates a bookmark file in Finder, pointing to the OF project.

I found code here that can create a link in any RTF-capable application.
Does that include OO?
 
Quote:
I found code here that can create a link in any RTF-capable application.
Does that include OO?
There is a discussion of this, with code, in a thread on the OO forum.

--

Last edited by RobTrew; 2011-01-24 at 04:17 AM..
 
Great scripts which will be very useful to me, being a long term OmniFocus user I can't believe I haven't seen these until now :(

I downloaded the scripts directly from http://jhh.med.virginia.edu/main/OmniFocusScripts earlier today so I should have the latest versions, although the page does say it was last edited two years ago.

I'm not familar with AppleScript so I initially implemented the two scripts using the default locations however I've still come across an issue.

The scripts appear to work at first. Clicking on the Project Folder script successfully creates the folders in the desired locations if they need to be created. Then clicking on the Project Notes script also causes the OmniOutliner Pro file to be correctly created if needed. Such as project1.oo3.

The problem I have found is that when I then select a different project in OF and click the Project Folder script it creates the folders ok if needed, but when I click on the project notes script, it complains it complains it can't find the project1.oo3 file even though it should be trying to create project2.

I've also had an issue where once the oo3 files is created and modified I do not have the option to save it, only to Save As.

Ideally I wanted my files stored in dropbox so if I happen to be using OF on the iPad I can still get to my project files via Dropbox's web interface etc. I may later change the scripts to work with plain text files or something so when I'm at work on a windows system I still have access to my notes. As a starting point I've now modified the standard OO scripts to work in Dropbox, so I now have my Project folders being correctly create in ~/Dropbox/Projects/ but obviously I still have the issue of being unable to create the note files correctly.

Any idea what the problem might be ?

Thanks

Phil
 
As also mentioned by other posters above, I frequently move projects / tasks between sections in my OF structure. As an example I have folders for Today, This Week, Next Week etc and move project up the lists as I do my weekly, and daily reviews. I had planned to just manually move the project files in dropbox to mirror the changes I make in OF and also to have a COMPLETED folder to move project files to once I close them off in OF. Do you see any issues with this approach ?
 
I've been looking through the Project Notes script trying to work out how it works and it appears that the variable "projNotesName" hasn't been set when it's first called by the script.

What I'm seeing is on first run projNotesName isn't being set prior to the point it tries to open the file and I'm guessing it tries to open a file with no name, it then correctly branches off to create the new file during which it sets the variable projNotesName prior to saving the file. On subsequent runs the script is remembering the value from when it was previously run, this causes it to look for project1.oo3 when it should be trying to find or create project2.oo3.

The bit I don't get is when it doesn't finding project1.oo3, in project2's folder structure, why it gives an error instead of trying to create the missing file, even if that meant doing so with the wrong name.

I'm guessing as you guys have it working that I must have downloaded an old version of these scripts, is their a newer link to the ones your running ?



{edit}
I've just downloaded the files linked to by blazercomp on page 4 of this thread. I ignored them at first as they said same as the source, but they are different and contain modifications by Nicola Vitacolonna, Sep 2009

Working a treat now :) Thanks

Last edited by Cypher; 2011-01-30 at 06:48 AM..
 
I don't have a "scripts" file anywhere. I only have an OmniFocus file in

home-- library--application support---omnifocus

I can't figure out how to get the icons into my toolbar. Any ideas?
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How best to organise files and folders? philrob Omni Lounge 4 2012-06-25 06:21 PM
Will OmniPlan for iPad open Microsoft Project files? amarsh OmniPlan for iPad 2 2012-06-07 11:41 AM
Open Folder / Notes Scripts broken in Lion Full Screen Mode nunez OmniFocus 1 for Mac 3 2011-10-06 03:42 PM
Slow to Open OF and Open the Settings [fixed by reducing zip files] GreenLorax OmniFocus for iPhone 26 2009-07-26 02:38 PM
Scripts that add simple tags to the end of notes... a11en OmniFocus Extras 9 2008-08-29 09:50 PM


All times are GMT -8. The time now is 04:55 PM.


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