[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] more quark scripting



At 11.57 -0500 2000.03.30, M. Christian Hanson wrote:
>Now I am beginning to feel a little dumb.  I have a applescript
>example, and am trying to turn it into MacGlue stuff.  I am hoping
>that I begin to grasp this stuff RSN.
>
>	open "pete:masterdoc" use doc prefs no remap fonts no auto
>picture import no
>
>
>and so this works:
>
>use Mac::Glue;
>my $t = new Mac::Glue 'QuarkXPress';
>$t->activate;
>
>$t->open ('pete:masterdoc');
>
>
>but the below does not.  And it fails with the error:
>
># 'use doc prefs' parameter not available
>File 'Dev:Pseudo'; Line 12
>
>--
>
>$t->open ('pete:masterdoc', 'use doc prefs' => 'no', 'remap fonts' =>
>'no','auto picture import' => 'no');

My guess is there is no 'use doc prefs' parameter available.  Check the POD
documentation that comes with the glue for QuarkXPress (open it directly,
or use the "show_glue_pods" script).  Most likely your problem is that you
need underscores instead of spaces in the parameter name.  Also, you will
probably need to call enum() for enumerations (e.g.: $t->open($file,
use_doc_prefs => enum('no')).

See the POD for Mac::Glue for more info.

-- 
Chris Nandor       |     pudge@pobox.com      |     http://pudge.net/
Andover.Net        | chris.nandor@andover.net | http://slashcode.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org