I have the following script:
tell application "FileMaker Pro Advanced"
tell document "xyz.fp7"
activate
tell table "Table"
tell (every record whose cell "Customer" = "ABC Hardware")
set orderList to cell "orderNumber"
end tell
end tell
end tell
end tell
set currentOrder to "12345"
if currentOrder is not in orderList then
do something
else
do something else
end if
For this example, “12345” is in orderList
The script works perfectly as a script.
However, as a droplet, the if statement seems to have an issue seeing the orderList, and just processes straight through as if the order number is not in orderList.
Any idea why it would work as a script. But, not as a droplet?