Giter Site home page Giter Site logo

omnifocusscripts's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

omnifocusscripts's Issues

OmniFocus 4 - Fix Pending Project Review Dates

I was having some trouble after removing OmniFocus 3 and installing OmniFocus 4.
I tried changing tell application id "com.omnigroup.Omnifocus3 to tell application id "com.omnigroup.Omnifocus4, but parts of the script had been replaced with tokens like "«class FCDR»".
I was getting an error: Can’t set «class FCDR» to «class FCDs». Access not allowed.

I was able to fix it by installing OF3 again, then opening the script and copy/pasting the text of it into the script I was using for OF4..

I wonder if there is something about how Applescript stores binary versions of the script vs text?

In case it helps anyone in the future, here is the text of the script:

(*
	This script updates the next review date for pending projects.  Pending projects are those with start dates in the future.  For each such project, the script sets its next review date to its start date.
	
	Future enhancements:
		- add flag to allow not making review dates earlier than already scheduled
		- add code to move the review date for on-hold projects forward to the next weekly review day
			
	version 1.0.1, by Curt Clifton
	
	Copyright © 2010, 2014, 2018 Curtis Clifton
	
	Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
	
		• Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
		
		• Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
		
	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
	
	version 1.0: initial public release
	version 0.2: updated for OmniFocus 2 for Mac
	version 0.1: prototype, not yet released
*)

(*
	The following properties are used for script notifications.
*)
property scriptSuiteName : "Curt’s Scripts"

tell application id "com.omnigroup.Omnifocus3"
	tell default document
		(* Moves next review date of any pending project to match its start date. *)
		set pendingProjects to (every flattened project whose (status is active status or status is on hold status) and defer date comes after (current date))
		repeat with i from 1 to count of pendingProjects
			tell item i of pendingProjects
				set next review date to defer date
			end tell
		end repeat
	end tell
end tell

my notify("Review Dates Updated", "Review dates updated for all pending projects.")

(*
	Uses Notification Center to display a notification message.
	theTitle – a string giving the notification title
	theDescription – a string describing the notification event
*)
on notify(theTitle, theDescription)
	display notification theDescription with title scriptSuiteName subtitle theTitle
end notify

And you can change "com.omnigroup.Omnifocus3" to "com.omnigroup.Omnifocus4"

Request: Please add a Readme explaining the scripts

As the title suggests. I appreciate all your work and use some of your scripts. That being said I think it would make sense to add a readme to this repo, since a) not all people will find their way to your website b) not all scripts are explained on your website.

Thank you for your consideration!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.