dfay Posted June 22, 2013 Share Posted June 22, 2013 Title pretty much says it all. I have a workflow which is syncing via Dropbox, & which I use on three different machines, but which requires a hard-coded path that varies on each of the machines. Is there a quick and easy system variable or something I can use to identify which machine I'm running on? Applescript or bash-based preferably.... I realize this isn't really an Alfred Q. but hopefully someone can help. thanks Derick Link to comment
dfay Posted June 22, 2013 Author Share Posted June 22, 2013 Found my answer.... http://arstechnica.com/civis/viewtopic.php?f=19&t=53074 Link to comment
RodgerWW Posted June 22, 2013 Share Posted June 22, 2013 The System name is a fine way of doing this, especially when you know each system is different. But if you have 3 iMacs in different places and they are all named the same, there is an issue. I might have suggested using the system serial number, as every system has a unique one: in terminal system_profiler SPHardwareDataType | awk '/Serial Number/ {print $NF}' outputs the serial of that system. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now