i've been trying script working following things:
1. create new folder everyday, on startup, day's date folder name. (the easy part)
2. create alias (or rather update existing alias) on desktop points newly created folder. (this can't figure out)
3. create folder once in day (seems work ok)
far able create folders ok, , multiple reboots still seems work, if folder exists won't create again. problem can't alias update/replace. does, however, seem create 1 in folder original alias points to. can help? here's script (a bit of mess i've been messing while):
code:
function alias { readlink -n ~/desktop/_audio_files_daily_ } target=/volumes/media/audio\ files/$(date +%y%m%d) audiolink=alias if [ "$audiolink" != "$target" ] then mkdir /volumes/media/audio\ files/$(date +%y%m%d) ln -sf /volumes/media/audio\ files/$(date +%y%m%d) ~/desktop/_audio_files_daily_ else echo fi
thanks
look n option ln. think want that.
think problem is treating ~/desktop/_audio_files_daily_ destination directory creating new link.
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment