• 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
File Names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Scripting KerberosAgent
  • Next by Date: Cyberduck doesn't send complete files
  • Previous by thread: Re: How to Archive/Compress an item or folder?
  • Next by thread: Cyberduck doesn't send complete files
  • Index(es):
    • Date
    • Thread