Est-il possible d'obtenir l'heure et les minutes au format 24 heures HHMM, de sorte que 1:01 soit 0101 ?
J'ai trouvé un moyen de le faire pour le mois et l'année mais je ne trouve pas de moyen pour l'heure et les minutes.
Voici ce que j'ai pour l'instant.
set whichUrl to 0
set fileNames to "map"
set theStartDate to the date "Tuesday, June 21, 2016 at 00:00:00"
set theEndDate to theStartDate + (60 * 60 * 24 * 365) --1 year
set theDate to theStartDate
repeat until theDate = theEndDate
set theURL to "http://site.com/map.php?iso="
set {year:y, month:m, day:d} to (theDate)
set theModDate to (y * 10000 + m * 100 + d) as string
set theURL to theURL & theModDate & hours of theDate
set theURL to theURL & minutes of theDate
tell application "Safari"
activate
set the URL of document 1 to theURL as text
delay 2
end tell
set theDate to theDate + (600) --advance 10 minutes
set whichUrl to whichUrl + 1
end repeat