Re: I've changed the name of a file...
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