Jump to content
Sign in to follow this  
LiveOak

Rename a file with Applescript.

Recommended Posts

I would user a FM plug-in such as the Troi-File plug-in. It has a full range of file handling features.

-bd

Share this post


Link to post
Share on other sites

I figured it out thanks. I put together an applescript to tell bbedit to fill a file with what I want and save it with the file name I want. I don't even need to export. horay

Where do you find plug-ins like that? Yes, I'm clueless. I've been using FM for years and only found this site today!

Share this post


Link to post
Share on other sites

quote:

Originally posted by Drew Cover:

I figured it out thanks. I put together an applescript to tell bbedit to fill a file with what I want and save it with the file name I want. I don't even need to export. horay

Where do you find plug-ins like that? Yes, I'm clueless. I've been using FM for years and only found this site today!

www.troi.com

www.newmillennium.com

www.wmotion.com

--->all 3 are FSA Partners. Excellent plug-ins.

Old Advance Man

Share this post


Link to post
Share on other sites

I would like a database to export one html file for each record in the database.

I thought of writing a FM script which found each record in turn, omitting the rest, and doing "export found". The problem is that using FM scripting there doesn't seem to be anyway to give the different files different names.

Thom in another thread, very helpfully, suggested using AppleScript to rename the file after it has been exported. The problem with that is that I know squat about AppleScript. I am willing to learn. I opened the script editor, opened the Finder's dictionary. There are lots of commands there: Open, Close, Quit, Print,... but not Rename.

Anyone?

Anyone know of another way to save one field as a text file with the filename given by another field of the same record?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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