• 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: Renaming file bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Renaming file bug (From: JM <email@hidden>)

  • Prev by Date: Re: set the clipboard not available in some apps (like Word)
  • Next by Date: Re: Scripting Transmit using applescript in FileMaker
  • Previous by thread: Renaming file bug
  • Next by thread: Re: Applescript-users Digest, Vol 1, Issue 250
  • Index(es):
    • Date
    • Thread