Hey guys,
I’ve got an obscure file type with an extension of “.out” and a type identifier of “dyn.age8087py”.
I’ve tried both of the following types of choose file commands:
choose file of type ".out"
choose file of type "dyn.age8087py"
but neither work will let me select any files. They’re all faded and unselectable.
How can I specify file types that aren’t your typical types?
Thanks,
Tim
Hi,
the file type parameter is supposed to be a list and the extension is used without the dot,
so try
choose file of type {"out"}
Hello
“dyn.age8087py” is an identifier built on the fly for your « atypical » files.
Under Lion, if you wanted to be able to select one of these files, you were able to store one of them in a known location then use this code :
tell application "System Events"
set typeID to type identifier of disk item ((path to desktop as text) & "trucmuche.cwk")
end tell
choose file of type {typeID}
Alas, on my machine running Mountain Lion, this doesn’t apply.
Yvan KOENIG (VALLAURIS, France) vendredi 10 août 2012 20:41:12
Oh the many mistakes I make…
Works now. Thanks!
I too am on mountain lion now… Anyone know the current version of this same trick (even though Stefan’s works perfect)?
Tim