File Names
File Names
- Subject: File Names
- From: Luther Fuller <email@hidden>
- Date: Tue, 18 Nov 2008 13:56:36 -0600
I've just noticed something that I probably should have noticed years
ago, but didn't.
If you have this code in your script ...
tell application "Finder"
if exists file fileNameStr of someFolderAlias then
then your script is NOT guaranteed to work on someone else's Mac.
Unless, of course, you know that 'fileNameStr' MUST be the full name
of the file including the extension.
If you use a file name without the extension, you will get true if the
extension is hidden, and false if the extension is not hidden. (I hate
it when that happens!)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden