titanium76 Posted October 8, 2009 Posted October 8, 2009 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?
Recommended Posts
This topic is 5523 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now