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

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

Recommended Posts

  • Newbies
Posted

I need to delete a file off of my Cincinnati Laser from FileMaker. It gets it there via a FMScript that export field contents of a container to this location. So I know the file name and the path its all built in a calculation field on that record. But I don't know how to get that info into an Applescript using the FM12 "Perform AppleScript" script step

When I hard code the path and file name (Shown Below) it works.

 

"set set xpath to "Titanium Brain:Users:smartin:Desktop:Laser:1512-clr-c.cnc"

 tell application "Finder"¶

       delete file xpath¶

 end tell"

 

 

When I try to pass the field contents (Shown Below) it doesn't work.

 

"set xpath to Laser::gCNCPath¶

 tell application "Finder"¶

       delete file xpath¶

 end tell"

 

What am I missing?

Posted

I'm no AppleScript expert, but I'm sure that the AppleScript engine can't resolve a FileMaker field reference (the same 'problem' as with ExecuteSQL).

 

Try

 

"set xpath to " & Laser::gCNCPath & "¶

 tell application "Finder"¶

       delete file xpath¶

 end tell"

This topic is 4090 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.