Back to Mac Usenet

From: Jo_y <jo_y@operamail.com>
To: All
Subject: Re: detect the default extensio
Date:Tue, July 29, 2008 11:28 PM


> You're going to have to restate your question. What do you mean by
> 'detect the default extension?' What do you hope to accomplish? (What is
> your *real* goal?)

Hi, W.
i'll try my best to explain the cause of my research,
let's use the application "TextEdit" for example:
if my front document contains only text, without format, i'll mean
without bold, italic, bullets, ect. letters, then Textedit will save
this document with the name extension ".txt", if the front doc.
contains formatted text then the application will save it as ".rtf",
else in the last case, if the text document contains pictures too,
then the front doc. gots the name extension "rtfd".

i know a other script, where puts folders or applications in the
finder-dock, and uses the .plist-file to do this task, but it's not
useful in this case. TextEdit uses a .plist- file (/Applications/
TextEdit/Contents/Info.plist) to find the right extension of the front
document.

you find the full-functional applescript, where will use this feature
here:
http://groups.google.com/group/alt.comp.lang.applescript/browse_thread/thread/153b5854f070cb54#

thanks for your attention.


41


Running TeleFinder Server v5.7.
© Copyright Spider Island Software