Re: INDESIGN: Problem Passing Doc Through Handlers of Called Script
Re: INDESIGN: Problem Passing Doc Through Handlers of Called Script
- Subject: Re: INDESIGN: Problem Passing Doc Through Handlers of Called Script
- From: Rick Gordon <email@hidden>
- Date: Thu, 15 Sep 2011 22:12:59 -0700
I'm passing the id (an integer), and in fact in the referenced case (the document id of the target document) is 912, and that document is being processed successfully through the calling script and through the fMain handler (whether the ID or the object reference is passed). The error happens when I pass the id (or the object reference) to other handlers in the called document.
I ran into this same issue in another script, where I got around it by bundling the entire operation into the single called handler. This time, I was trying to be more modular.
You say it should work, and I trust that you know better than I. Just not finding the magic button on this, though.
As an aside, would script objects help here?
------------------
On 9/16/11 at 3:03 PM +1000, Shane Stanley wrote in a message entitled
"Re: INDESIGN: Problem Passing Doc Through Handlers of Calle":
>On 16 sept. 2011, at 14:51, Rick Gordon wrote:
>>
>> Same error: "Can't make document id 912 of application \"Adobe InDesign CS5\" into the expected type." Can't even get to return "GOT HERE"
>
>It sounds like you're not passing what you think you're passing.
>
>--
>Shane Stanley <email@hidden>
>'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
>
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>AppleScript-Users mailing list (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>Archives: http://lists.apple.com/archives/applescript-users
>
>This email sent to email@hidden
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden