Saturday, December 16, 2017

#1 2017-09-28 02:51:06 pm

Beeman
Member
Registered: 2006-03-07
Posts: 72

using AppleScript to set a Cell in Filemaker Pro 16; has this changed

Hello

the following script works in Filemaker pro 13, but will not set the Filemaker Pro 16 Cell. Has the AppleScript library changed for Filemaker Pro 16

--Make sure QuickTime exists; could be used to find any program
if (do shell script "ls /Applications") contains "QuickTime Player" then
    --send information to FileMaker so opening script can set voicenotes properly
    tell application "FileMaker Pro Advanced"
        tell table "Preferences"
            tell record 1
                set cell "ToBurnSound" to "QuickTime Player"
            end tell
        end tell
    end tell
   
end if

Browser: Safari 602.3.12
Operating System: Mac OS X (10.10)

Offline

 

#2 2017-09-29 04:02:20 pm

kerflooey
Member
Registered: 2011-07-07
Posts: 138

Re: using AppleScript to set a Cell in Filemaker Pro 16; has this changed

Hi, I don't think it's changed. A couple things: Your script won't work if a cursor is currently inserted in the target field, and try using "set data cell" instead of "set data".

Personally, I never use "tell database". I always use "tell window" followed by "tell layout", and the target field must actually be on the layout you're telling. Does any of that help?

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)