On Nov 30, 2007, at 8:45 AM, Sue wrote:

I don't need this to work cross=platform as this is a fully Mac business. I downloaded the Troi application trial to see if it might work and noticed it has a change name function, which seems like it could work. However, I do not yet understand how to accomplish what I want to do with it. Any chance you could share a simple script that would move and rename an image file using Troi? I am envisioning that a user would locate a file to be moved, then click a button which would run a script to rename the image to a calculated name, move the image to a new location, and record the new filepath in a text field. If it were possible, and it looks as if it might be, it would be great to be able to resize and change the image format too.

I've not done large systems, but I've done quite a bit of messing about with images, AppleScript and FileMaker. First, yes, you could do it with Troi File. But if it is for a Mac-only installation, AppleScript and command line can do everything Troi File can do and more (all of which can be run by using the FileMaker Perform AppleScript script step). This is one of the reasons that businesses in these image intensive industries tend to use Macs more than other industries do.

For example, there is a background application named "Image Events" on every modern Mac. It can resize and convert formats.
There are example AppleScripts for this on the Apple site.
http://www.apple.com/applescript/learn.html
Specifically, at the lower right, a download of Image Templates, example AppleScripts:
http://images.apple.com/applescript/pkg/image-templates.zip

Choosing, renaming and moving files is fairly easy with AppleScript. It can also mount volumes.

set theFile to choose file
tell application "Finder" to set name of theFile to "Some name.jpg"

It is sometimes a little difficult to figure out how to do a specific thing. There are a lot of examples on the net however, sites such as
http://macscripter.net

FileMaker has very good AppleScript support. It runs AppleScript faster than Script Editor. Most image applications also have good AppleScript support.


Fenton Jones
FileMaker Development
1728 Meade Ave
San Diego, CA 92116
619-692-1529
http://fentonjones.com

Reply via email to