The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Need an AppleScript written (http://forums.omnigroup.com/showthread.php?t=24353)

popcornflix 2014-01-21 01:09 PM

This is the clipboard format the script is expecting:

[CODE]Dinner
scheduled January 16, 2014 from 7:00 PM to 10:00 PM
[/CODE]

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[/CODE]

popcornflix 2014-03-10 09:33 AM

a little help, please.
 
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]

[CODE]replace <full month name> with <3-character short month name>
(January = Jan, February = Feb, etc.)[/CODE]

[CODE]replace "2014, " with "2014 from "[/CODE]

[CODE]replace ":00 AM" with " AM"[/CODE]

[CODE]replace ":00 PM" with " PM"[/CODE]

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.


All times are GMT -8. The time now is 11:25 AM.

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