Jump to content

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


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

Recommended Posts

  • Newbies

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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