August 26, 200322 yr I'm relieved that Print Center is so AppleSciptable! One thing, I cant get is the list of printers in the list. Strike that, I can get the list, but when I put it into Filemaker is comes out all in one line. How do I get the list with a rtn after each printer?
August 26, 200322 yr Author I'm going to go ahead and answer my own question. The trick is using a repeating field. In this case, I have a FM Field "Printer List" with a round number of 10 repetitions. And this was the code I used in this case. tell application "Print Center" set printerlist to (name of printers as list) end tell tell application "FileMaker Pro" set the cell "Printer List" of record 1 of database 1 to (printerlist as list) end tell
August 26, 200322 yr Author tell application "Print Center" set printerlist to (name of printers as list) end tell tell application "FileMaker Pro" set the cell "Printer List" of record 1 of database 1 to (printerlist as list) end tell
Create an account or sign in to comment