set Dossier to (path to desktop from user domain) as string
-- test d'existence SANS l'extension
set F_Sans_Ext to "Test"
set Le_Fichier to (Dossier) & F_Sans_Ext
tell application "Finder" to display dialog "Le fichier " & Le_Fichier & return & "existe (true/false)=" & ((file Le_Fichier exists) as string)
-- test d'existence AVEC l'extension
set F_avec_Ext to "Test.pdf"
set Le_Fichier to (Dossier) & F_avec_Ext
tell application "Finder" to display dialog "Le fichier " & Le_Fichier & return & "existe (true/false)=" & ((file Le_Fichier exists) as string) |