-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I relay tried and googled it all but I just can't get "System Events" to
get me the file names of a folder. Here the snippet I got:
tell application "System Events"
-- set Current_Folder to POSIX file Current_Path
set Current_Folder to POSIX file "/Users/martin"
set Backup_Files to get the name of every item of Current_Folder --
whose name starts with ("martin")
end tell
Current_Path is of course a valid posix path. It seems to be some data
type problem. And the error messages are not at all helpful:
System Events got an error: Can't make every item of file "Macintosh
HD:Users:martin" into type reference.
Is there any full features documentation of System Events?
Thanks for any help.
Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iD8DBQFKbd+iijwKaHyem9cRAi5JAJ0YBPRiVGzWjZO4a8vFQwpbTdKQfQCfV83G
EN7BeZi0OxQyEbPq6WdVi6c=
=OgFQ
-----END PGP SIGNATURE-----