The Omni Group Forums

The Omni Group Forums (
-   OmniFocus Extras (
-   -   Need an AppleScript written (

popcornflix 2014-01-21 01:09 PM

This is the clipboard format the script is expecting:

scheduled January 16, 2014 from 7:00 PM to 10:00 PM

This is a sample of the clipboard format from OSX 10.9:

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 12:01 PM.

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