• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rename File from Filemaker Pro
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Rename File from Filemaker Pro (From: Sam Elowitch <email@hidden>)

  • Prev by Date: Re: Sorting IP addresses
  • Next by Date: Re: Sorting IP addresses - Progress
  • Previous by thread: Rename File from Filemaker Pro
  • Next by thread: Re: Rename File from Filemaker Pro
  • Index(es):
    • Date
    • Thread