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

OS9 script doesn't work in OSX....HELP!!!!


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

Recommended Posts

  • Newbies
Posted

This is a script I used in OS9 Filemaker to write external text text files with unique info and filename.....now it doesn't work in OSX.

Here is the script:

tell application "FileMaker Pro"

set this_name to get data cell "HTML File Name" of the current record

set this_data to get data cell "HTML Page" of the current record

end tell

tell application "Finder"

set this_file to (((path to desktop folder) as text) & "jewelry_HTML:" & this_name)

set the target_file to the this_file as text

set the open_target_file to open for access file target_file with write permission

write this_data to the open_target_file starting at eof

close access the open_target_file

return true

try

close access file target_file

on error

end try

end tell

Any help would be appreciated.

Cade

Posted

OS9 and OSX seem to behave differently in their file handling systems. So, I expect that is where your problem is. I'm no expert on OSX though, so the only advice that I can give is to use the Applescript editor to test and debug the script, check the error messages that it gives you, and concentrate on the syntax of the file references.

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