My imac running Snow Leopard is not at home so I can't check the operating system behaviour.
set nomDuRapport to "csv_" & (do shell script "date " & quote & "+_%Y%m%d-%H%M%S" & quote) & ".csv"
set dossierSource to path to desktop as text
set cheminDest to dossierSource & nomDuRapport
tell application "System Events"
make new file at end of folder dossierSource with properties {name:nomDuRapport}
end tell -- System Events
write "1,69,14/18,56" to (cheminDest as alias)
set typeId to type identifier of (info for file cheminDest)
set the clipboard to typeId
display dialog "“" & typeId & "” is in the clipboard"
I know that 10.4 and 10.5 return something like dyn.age81u8p4.
I wish to know if Snow behave the same or if it define one like "public.csv"
Thanks in advance.
Yvan KOENIG (VALLAURIS, France) samedi 10 avril 2010 16:58:54