Passing variable to Applescript : Adobe Illustrator

I am creating a macro that will select a PDF "preset" in Adobe Illustrator. I am trying to figure out how to pass a variable (a file name) to an applescript variable. Not sure why it is not working. Maybe the apple script is not correct or I am not passing variables correctly within KM.

Any help would be much appreciated.:grinning:

I think what you need in line 2 is:

set myASVar to getvariable "MyFileName"

See the Wiki for details.

That worked perfectly - thanks so much for your help!