February 3, 200718 yr is it possible for applescript to use filemaker variable. or does anyone know how to set the last created item as target item in applescript?
February 3, 200718 yr No, AppleScript has no idea about FileMaker variables; FileMaker would have to add them to its AppleScript dictionary. But you can just use a global field instead, same as always.
February 3, 200718 yr Author You mean on my filemaker side i set as $$variable and on my applescript side i set as property variable?
February 3, 200718 yr No, I mean forget about using a FileMaker $$variable with AppleScript. You have to use a FileMaker global (or regular)field to pass a value to AppleScript. You could then set the value passed into a variable in AppleScript and use it. But a "variable" in FileMaker and a "variable" in AppleScript can have no idea about the other, even though they sound similar.
February 3, 200718 yr Author I think is possible to do so through calculated applescript Can someone correct what is wrong with my scripting. "set this_item to" & $fullpath& ¶ & "tell application "URL Access Scripting" upload this_item to "ftp://user:[email protected]/Invoices/" replacing yes without binhexing end tell"
February 3, 200718 yr Yes, sorry, I should not have said to "forget" using variables. It was late :-| It will work if you put it into a calculation field. But then it IS in a field; you're still not using the FileMaker variable directly with AppleScript. I think the problem you've got is that you need to use the global $$variable syntax, because it is not technically inside its own script.
February 3, 200718 yr I think the problem you've got is that you need to use the global $$variable syntax, because it is not technically inside its own script. Could you make $$variables or script-parameters work for that matter?? --sd
February 5, 200718 yr Author Hi, Thanks for responding. I manage to resolve my problem is just the formatting. Global variable is not needed. I had to add carriage returns at the right place and it works.
Create an account or sign in to comment