• 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: I've changed the name of a file...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I've changed the name of a file...


  • Subject: Re: I've changed the name of a file...
  • From: Richard 23 <email@hidden>
  • Date: Fri, 3 Nov 2000 11:52:34 -0800

>almost perfect - however I start with
>
> file "Work:DMS Group:Database:Test Images:OldFileName"
>
>but I end up with
>
> alias "Work:DMS Group:Database:Test Images:NewFileName"
>
>FileMaker will not accept an alias reference - it must be a file reference
>
>Can I easily turn one into the other?

tell application "Finder"
set vPathName to "Work:DMS Group:Database:Test Images:OldFileName"
set vAlias to file vPathName as alias
set name of vAlias to "NewFileName"
set vFile to vAlias as file specification
end tell

there's your file reference.

Now about whether you're going to be getting 25 AppleScript emails a day
for
the rest of your life...oh I'll just send you some email! 8)

R23


  • Prev by Date: Re: CodeWarrior Question by Newbie
  • Next by Date: Re: I've changed the name of a file...
  • Previous by thread: Re: I've changed the name of a file...
  • Next by thread: Re: I've changed the name of a file...
  • Index(es):
    • Date
    • Thread