Re: "set name" not working - newbie question -urgent
Re: "set name" not working - newbie question -urgent
- Subject: Re: "set name" not working - newbie question -urgent
- From: Mr Tea <email@hidden>
- Date: Fri, 12 Apr 2002 18:26:31 +0100
This from Tracy Vanderwerf - dated 12/4/02 02.57 pm:
>
try
>
select folder fileContainer
>
select file COPY_ARTID of folder fileContainer
>
set name of selection to ARTID
>
on error
>
display dialog "error on select "
>
end try
Does the folder that you're trying to select a file in have it's window
open? The select command may be giving you problems if that's not the case.
And what is 'ARTID'? Is that a variable containing a string that can be used
as the file name? It will need to be for the renaming to work. If it is,
try...
set myARTID to (file COPY_ARTID of folder fileContainer) as alias
set name of myARTID to ARTID
...instead of the two equivalent lines in your original script.
Mr Tea
--
Brew of the day: African Blend
_______________________________________________
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.