Printing options from answer printer
Bill Vlahos
bvlahos at mac.com
Mon Nov 10 00:41:37 EST 2008
Hmmm. I don't get that on my Canon MP460.
If I make a button and put this script:
on mouseUp
answer printer
answer the printerSettings
end mouseUp
I get a dialog that just has "QDCT". Is there some other format of
getting the printerSettings I should be using?
Bill
On Nov 9, 2008, at 8:33 PM, Ken Ray wrote:
>> If I know the user selected scale... then I can use the print card
>> into x,x,x,x statement.
>>
>> Is this a missing feature of Rev or is there some other way to get
>> it?
>
> Well, when *I* print to my printer (an HP OfficeJet 7780), if I ask
> for "the
> printerSettings" right after "answer printer", I get (mostly) XML
> that I can
> parse, in a pList fashion (on OS X). In my case, I've determined
> that when
> the " com.apple.print.PageToPaperMappingType" is 1, the "Scale to
> fit Paper
> Size" is turned off, and it is 2, then it's turned on.
>
> The relevant XML code follows. Look at the indicated lines; this is
> when
> it's turned OFF:
>
> <key>com.apple.print.PageToPaperMappingType</key>
> <dict>
> <key>com.apple.print.ticket.creator</key>
> <string>com.apple.jobticket</string>
> <key>com.apple.print.ticket.itemArray</key>
> <array>
> <dict>
> <key>com.apple.print.PageToPaperMappingType</key>
> --> <integer>1</integer>
> <key>com.apple.print.ticket.stateFlag</key>
> <integer>0</integer>
> </dict>
> </array>
> </dict>
>
> and this is when it's turned ON:
>
> <key>com.apple.print.PageToPaperMappingType</key>
> <dict>
> <key>com.apple.print.ticket.creator</key>
> <string>com.apple.jobticket</string>
> <key>com.apple.print.ticket.itemArray</key>
> <array>
> <dict>
> <key>com.apple.print.PageToPaperMappingType</key>
> --> <integer>2</integer>
> <key>com.apple.print.ticket.stateFlag</key>
> <integer>0</integer>
> </dict>
> </array>
> </dict>
>
> Don't know how it works on your printer, though...
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list