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

 
Need an AppleScript written Thread Tools Search this Thread Display Modes
This is the clipboard format the script is expecting:

Code:
Dinner
scheduled January 16, 2014 from 7:00 PM to 10:00 PM
This is a sample of the clipboard format from OSX 10.9:

Code:
Dinner
Scheduled: Jan 16, 2014, 7:00:00 PM to 10:00:00 PM

Last edited by popcornflix; 2014-01-21 at 02:17 PM..
 
Okay, all it needs is for the clipboard string to be formatted properly. I've tested this by hand, and verified that it works. Now I just need to automate the text conversion.

Could someone conversant with AppleScript help me with this, please? Here are the changes that need to be made to each item on the clipboard:

Code:
replace "Scheduled:" with "scheduled"
Code:
replace <full month name> with <3-character short month name>
(January = Jan, February = Feb, etc.)
Code:
replace "2014, " with "2014 from "
Code:
replace ":00 AM" with " AM"
Code:
replace ":00 PM" with " PM"
As mentioned earlier, I appreciate any help. I intend no disrespect to any developer by asking for free help. If you can fix this and need to be paid, please PM me, and I'll see what I can do.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applescript help Shek OmniGraffle General 3 2012-09-04 05:02 AM
Applescript help mojaverat OmniFocus 1 for Mac 1 2011-08-23 04:18 PM
$$ for Applescript Help Hewdini OmniFocus Extras 1 2009-08-14 12:34 PM
Applescript Help ryan_marsh OmniFocus 1 for Mac 3 2008-11-24 09:51 AM
Help with applescript mrpuggles AppleScripting Omni Apps 1 2008-09-16 05:40 PM


All times are GMT -8. The time now is 04:54 AM.


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