• 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
Strange behaviour of file from list after renaming...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange behaviour of file from list after renaming...


  • Subject: Strange behaviour of file from list after renaming...
  • From: David Crowe <email@hidden>
  • Date: Wed, 14 Jul 2004 16:19:29 -0600

Normally it is quite possible to cast a file to a string.

For example, something like: tell Application "Finder" to set FileList to every file in folder SomeName whose name starts with "A"


You can then access the list as: repeat with AFile in FileList


At this point "Afile as string" is valid and contains the full path name of the file.


However, if you rename the file: set name of AFile to StringContainingNewName

... then it is no longer possible to convert "AFile" to a string.


This is very useful to keep track of files that are open in my current application.

Is there another way to get a string encoding the entire file pathname? Am I doing something wrong in my method of accessing the file information?

- David Crowe
_______________________________________________
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.


  • Follow-Ups:
    • Re: Strange behaviour of file from list after renaming...
      • From: John Stewart <email@hidden>
    • Re: Strange behaviour of file from list after renaming...
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Counting & trashing
  • Next by Date: Re: QuickSort
  • Previous by thread: Re: replacing an image in photoshop
  • Next by thread: Re: Strange behaviour of file from list after renaming...
  • Index(es):
    • Date
    • Thread