On Thu, Nov 25, 2010 at 10:29 PM, Yves COPPE <[email protected]> wrote:
> Hi list,
>
> I make a manipulation of date and time in LiveCode and put the it into a 
> variable : tFinalDate
>
> now I'd like to use this var into an applescript command ...
>
>   put "tell application "&quote&"iCal"&quote&cr& \
>          "tell calendar "&quote&theCal&quote&cr& \
>
> here comes the incorporation of the variable
>          "set theDueDate to tFinalDate + 2 * days"&cr& \
>
> How can I do that ?
>
> Thanks.
>
>
> Greetings.
>
> Yves COPPE
> [email protected]

Hi Yves,

Assuming the variable "tFinalDate" contains a date time like
"11/26/2010 10:00", you have to convert it as an applescript date. For
doing that you can use the AS date function like this:

 "set theDueDate to date("&quote&tFinalDate&quote&") + 2 * days"&cr& \


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc

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

Reply via email to