Re: Rename File from Filemaker Pro
Re: Rename File from Filemaker Pro
- Subject: Re: Rename File from Filemaker Pro
- From: Bill White <email@hidden>
- Date: Sun, 21 Dec 2003 11:06:09 -0500
>
1. pass the variable inside field x to the Finder.
>
2. tell the finder to rename the selected file with the new name.
>
>
I'm a little lost as to the syntax....
Sam,
This might give you a rough outline (watch line wraps):
set targetFile to (path to desktop as string) & "Some File" as string as
alias -- or choose the file however you like
tell application "FileMaker Pro"
tell document "My Database" -- substitute database name
set imageName to cell "Image Name" of current record -- use your own
field name
end tell
end tell
tell application "Finder"
set name of targetFile to imageName
end tell
HTH,
--Bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.