Strange behaviour of file from list after renaming...
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.