Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6502 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

Posted

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.

Posted

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.

Posted

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"

Posted

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.

Posted

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

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.