Re: asc ascii file extensions
Re: asc ascii file extensions
- Subject: Re: asc ascii file extensions
- From: KOENIG Yvan <email@hidden>
- Date: Fri, 25 Mar 2011 17:43:02 +0100
Le 25 mars 2011 à 17:16, James Roberts a écrit : I did a quick search of the list and didn’t find anything related to this. If I missed something I apologize and please send me a link to the thread.
I have a couple of scripts that manipulate files base on there extensions. I noticed that a couple of files failed to process every time.
What I found confuses me.
tell application "Finder" get name extension of document file "test.txt" of folder "tmp" of home --> "txt" end tell Result: "txt"
tell application "Finder" get name extension of document file "test.asc" of folder "tmp" of home --> "" end tell Result: ""
tell application "Finder" get name extension of document file "test.ascii" of folder "tmp" of home --> "" end tell Result: "" Is this a known problem or am I missing something (most likely:-)? This happens on both 10.6.7 and 10.5.8
I get the same behavior but for me it's not a problem because I don't ask this kind of info to the Finder but to System Events which returns the wanted info asc or ascii.
Yvan KOENIG (VALLAURIS, France) vendredi 25 mars 2011 17:42:46
|
_______________________________________________
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