set ARTICLE to choose file with prompt "Où ce trouve ton fichier ?"
tell application "Finder"
activate
set TAILLE to data size of ARTICLE
if TAILLE is less than 25000 then
display dialog "Ton fichier pèse " & TAILLE / 1024 & " Ko! " with icon note buttons "Ouf" default button "Ouf" with icone
end if
end tell
Qu'est ce qui joue pas dans mon script ? Il annonce des tailles tout à fais farfelues je pige pas
!
------------------
@+ Number One
++++Mac OS Forever++++
Number One on the net
Sorry, but Only Mac !
tell application "Finder"
activate
set TAILLE to data size of ARTICLE
if TAILLE is less than 25000 then
display dialog "Ton fichier pèse " & TAILLE / 1024 & " Ko! " with icon note buttons "Ouf" default button "Ouf" with icone
end if
end tell
Qu'est ce qui joue pas dans mon script ? Il annonce des tailles tout à fais farfelues je pige pas
------------------
@+ Number One
++++Mac OS Forever++++
Number One on the net
Sorry, but Only Mac !