如果要使用同步的文件,在界面中点击 Use existing sync file 即可。 七、Hazel 的下载. Hazel 是一款收费软件(下载地址),五月初的时候发布了 4.0 版本,单独购买是 $32,Family Pack $49,从 3.0 版本升级需要 $10。初次下载可以免费试用 14 天,建议大家先试用再购买。. Note that Hazel.does not. sync changes from the DS218+ back to /MASTERS, which is exactly how I want it to behave since updating back would likely screw up the Photos.app. So now, i snap a pic with my iPhone and it gets pushed up to iCloud Photos, as always. Syncing Folders. Hazel’s Sync action copies items from the monitored folder to another folder—but unlike the Copy action, Sync copies only those items that have been added since the last time the rule ran. So you can think of it as being like a smarter or more efficient Copy.
A shell script to work with Hazel to automatically install apps on OS X.
The 'Problem'
Many Mac apps come in '.dmg' files, and require the same set of steps:
One Solution
Most of those steps can be automated, but there are some details which need to be considered:
Version 0.01 (2014-01-01)
To start with I decided to only deal with the most common scenario: a DMG is mounted and it has an app which is not an installer.
The script will be called via Hazel. Choose /Volumes/ as the Folder and then create a new rule using the '+' under “Rules”:
This is the rule that I created:
Hazel Mac Sync App
'Dated Added' 'is after' 'Date Last Matched' means that it will run once for every new item added to /Volumes/ (so the script will need to be smart enough to tell when it is not being used on a dmg).
The two Display Notifications are mostly for debugging purposes, so I can tell when the recipe has started and finished.
Faux Hazel Syncing
Hazel doesn't sync its rules across Macs, but you can sort of fake it when you are creating a rule which points to a shell script on Dropbox.
![]()
Hazel Mac Sync Software
Once I have exported this Hazel rule on one Mac and imported it on the other Mac(s), any changes I make to the
hazel-newvolume.sh script will be reflected on all of the computers which sync via Dropbox.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |