• 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: "set name" not working - newbie question -urgent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >re: newbie question (From: "Tracy Vanderwerf" <email@hidden>)

  • Prev by Date: RE: applescript-users digest, Vol 3 #346 - 12 msgs
  • Next by Date: Re: "set name" not working - newbie question -urgent
  • Previous by thread: re: newbie question
  • Next by thread: script speed
  • Index(es):
    • Date
    • Thread