Skip to content

Instantly share code, notes, and snippets.

@bdsexton
Created May 4, 2012 04:28
Show Gist options
  • Save bdsexton/2592024 to your computer and use it in GitHub Desktop.
Save bdsexton/2592024 to your computer and use it in GitHub Desktop.
Generate UUID via AppleScript
do shell script "uuidgen"
set uuid to (get result)
display dialog "Have a UUID on the house:" with title "UUID Generator" default answer uuid buttons "OK" default button "OK"
@bdsexton
Copy link
Author

@rotary-software Sure, you can do something like this:

do shell script "uuidgen"
set uuid to (get result)
tell application "Numbers" to tell front document to tell active sheet to tell table 1
	set value of cell "A1" to uuid
end tell

@rotary-software
Copy link

Thank you very much will try it. I've project where I need to collect personal data into "something" without writing app and then export it as CSV and import into relational database tables. I choose existing SW on Mac and I working on template for Numbers for data collectors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment