ominae Posted February 3, 2007 Posted February 3, 2007 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?
Fenton Posted February 3, 2007 Posted February 3, 2007 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.
ominae Posted February 3, 2007 Author Posted February 3, 2007 You mean on my filemaker side i set as $$variable and on my applescript side i set as property variable?
Fenton Posted February 3, 2007 Posted February 3, 2007 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.
ominae Posted February 3, 2007 Author Posted February 3, 2007 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"
Fenton Posted February 3, 2007 Posted February 3, 2007 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.
Søren Dyhr Posted February 3, 2007 Posted February 3, 2007 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
ominae Posted February 5, 2007 Author Posted February 5, 2007 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.
Recommended Posts
This topic is 6502 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