Problems with opening pdf with GC using Applescript

This area contains the messages from the old Yahoo gcmac group after the port.
Post Reply
brian_christmas
Posts: 0
Joined: Sun Jun 07, 2015 7:20 am

Problems with opening pdf with GC using Applescript

Post by brian_christmas »

G'day Thorsten.In trying to assists a recent posting regarding saving Despeckled .pdf's from GraphicConverter, I found several problems.a) The dialog box that pops up when opening .pdf's, and offers opening options, is not trappable by Applescript, and freezes GC.b) The count of pages of a multi-page pdf always answers with '1'c) The number of the actual data window can vary from 1 to 2, Sometimes the 'Tools' window is '1'.Can these problems be fixed, please?RegardsSantatell application "GraphicConverter 9" activate silentopen file ((path to desktop) & "Mail Manager Test Files:BGL - MicroCapResearch.pdf" as text) delay 2 tell application "System Events" to tell process "GraphicConverter 9" delay 1 try # # This window is not recognized, and freezes GraphicConverter # click button "OK" of window "PDF Import Settings" end try # # Keystroke for closing window not recognized # try         keystroke return end try end tell set tempWindow to 1 if name of window 1 contains "Tools" then set tempWindow to 2 # # In multi-page pdf, this always returns '1' # say (count of pages of window tempWindow) end tell
Post Reply