Re: Renaming file bug
Re: Renaming file bug
- Subject: Re: Renaming file bug
- From: Mr Tea <email@hidden>
- Date: Sun, 12 Dec 2004 10:10:00 +0000
This from JM - dated 11/12/04 5ยท18 pm:
> I have wrote a script which works fine except a strange thing... I have this
> simple command line :
>
> tell application "Finder"
> set the name of ThisFile to ThisName
> end tell
>
> This command line works fine when the window of the folder containing the file
> is open in the Finder, and it doesn't works anymore when this window is closed
> !
Hi JM.
Can you tell us what exactly is stored in the variable 'ThisFile'? Is it an
alias ( alias "Diskname:Foldername:Filename"), or a reference (file
"Filename" of folder "Foldername" of disk "Diskname" of application
"Finder"), or something else... ?
If 'ThisFile' is an alias or reference, you should be able to set the name
of the file that it points to regardless of whether or not the window is
open
Nick
pp Mr Tea
--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden