October 8, 200916 yr This used to work under 10.5.x, it would list all the local and networked printers when executed as a calculated applescript: "tell application " & Quote("FileMaker Pro") & ¶ & "set theDoc to item 1 of (documents whose name starts with " & Quote(Get ( FileName )) & ")" & ¶ & "set cell "& Quote("LocalPrinterList") & " of current record of layout " & Quote("devOfficeLocations") & " of theDoc to do shell script " & Quote("lpstat -a") & ¶ & "end tell" Now I get "A "" can't go after this identifier." Unknown error -2740. HOWEVER, if I take that script, paste it into FileMaker's Data Viewer it shows me the calculated AppleScript: tell application "FileMaker Pro" set theDoc to item 1 of (documents whose name starts with "ION") set cell "LocalPrinterList" of current record of layout "devOfficeLocations" of theDoc to do shell script "lpstat -a" end tell which if run in AppleScript Editor, works fine and pastes the result into my filemaker file. Any ideas?
Create an account or sign in to comment