This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@user = `whoami` | |
@system = `scutil --get ComputerName` | |
@ip = (`ifconfig en0 | grep netmask`).split | |
@vers = (`sw_vers | grep ProductVersion`).split | |
@hw_info = `system_profiler` | |
@up = (`uptime`).split(',') | |
if @vers[1].include?('10.5') | |
@hw_name = 'Processor Name' | |
@hw_speed = 'Processor Speed' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Batch file rename/move script | |
Dir.chdir '/Users/username/Pictures/' | |
# sets destination folder | |
pic_names = Dir['/Users/username/Downloads/*.{jpg,JPG}'] | |
# sets source folder | |
puts 'What would you like to call this batch?' | |
batch_name = gets.chomp |