groups

info


tags: applescript,shell,script,timestamp,unique,id

Link to this snippet:


Download to Code Collector

language: AppleScript
licence: GPL 2

UniqueID

options: send to code collectorview all seydoggy's snippets
-- Generates and returns unique id's based on timestamps

-- by Adam Merrifield <http://www.seydoggy.com>
-- r1 10-27-09 18:55

set uniqueID to (do shell script "date +%y%m%d%H%M%S")
set the clipboard to uniqueID
display alert "\"" & uniqueID & "\"" & " Has been copied to your clipboard" giving up after 1