Bill,

On Maverick?

I have no problem controlling MS Excel by executing AS scripts within LiveCode.

I tried your script on Maverick and I can confirm it is very slow. The
first time I executed it, iCal requested an authorization for the
calendar to be modified by LiveCode.

So, after a quick search, I found this link:
http://support.apple.com/kb/HT5914?viewlocale=en_US&locale=en_US

It seems that applets must be signed to be authorized to control
others applications. The problem is may be in the communication
between LiveCode and  iCal because of a security layer. I tried to
follow the steps described in the Apple tech notes but without
success.


Best Regards,

On Wed, Oct 1, 2014 at 2:55 AM, Bill Vlahos <bvla...@mac.com> wrote:
> When I execute the AppleScript listed below in the AppleScript Editor it 
> works in about 1 second. Take the same script, put in in a LiveCode field and 
> do field “name” as AppleScript and it takes between 1 and 2 minutes to do!
>
> 1. Why?
> 2. How can I make it run quickly?
>
> Here is the AppleScript. It makes an event at the date and time and gets info 
> on it so that it is ready to add addresses and send out. The finished stack 
> will show how to modify the newly created meeting and delete it. I plan on 
> doing the same functions for Outlook on the Mac as a way to compare them.
>
> set calendarName to "Work"
> set theSummary to "Title of the event goes here 0775-4944"
> set theDescrption to "Description of event goes here."
> --set theLocation to ""
> set startDate to "October 1, 2014 9:30:00 AM"
> set endDate to "October 1, 2014 1:00:00 PM"
>
> set startDate to date startDate
> set endDate to date endDate
>
> tell application "Calendar"
>         activate
>         tell (first calendar whose name is calendarName)
>                 set vEventInfo to make new event at end of events with 
> properties {summary:theSummary, start date:startDate, end date:endDate, 
> description:theDescrption}
>                 copy uid to cID --
>                 copy vEventInfo's uid to eID --this works
>                 save
>         end tell
>         reload calendars
>         view calendar at startDate
>         show vEventInfo
> end tell
> set the clipboard to eID
>
> --display dialog "Event " & eID & " of Calendar " & cID
> tell application "System Events"
>         tell process "Calendar"
>                 keystroke "i" using command down
>         end tell
> end tell
>
> Bill Vlahos
> _________________
> InfoWallet (http://www.infowallet.com) is about keeping your important life 
> information with you, accessible, and secure.
> lcTaskList: (http://www.infowallet.com/lctasklist/index.htm)
> RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61)
>
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



-- 
Zryip TheSlug
http://www.aslugontheroad.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to