Changes

Jump to navigation Jump to search
Applied Syntax Highlight
Line 89: Line 89:  
To avoid opening the terminal window, create the following AppleScript and save as an application.
 
To avoid opening the terminal window, create the following AppleScript and save as an application.
    +
<syntaxhighlight lang=applescript>
 
       try
 
       try
 
             -- add "-terse" if you want less verbose results
 
             -- add "-terse" if you want less verbose results
Line 137: Line 138:  
   
 
   
 
  tell me to quit
 
  tell me to quit
   
+
  </syntaxhighlight>
    
Results of the synch will be stored in the "unison.log" file, and the applescript will display results in a TextEdit window.
 
Results of the synch will be stored in the "unison.log" file, and the applescript will display results in a TextEdit window.
Line 145: Line 146:  
Scrivener stores its projects as bundles (i.e. folders). Because Unison does not sync modification times of folders, changes to Scrivener projects do not get properly propagated. To get around this, I use this more complicated AppleScript to zip up any Scrivener projects -- the zipped file gets propagated properly, with the Scrivener project modification times properly preserved and transmitted. Needless to say, this is a hack; but I really want to sync my Scrivener projects on multiple machines!
 
Scrivener stores its projects as bundles (i.e. folders). Because Unison does not sync modification times of folders, changes to Scrivener projects do not get properly propagated. To get around this, I use this more complicated AppleScript to zip up any Scrivener projects -- the zipped file gets propagated properly, with the Scrivener project modification times properly preserved and transmitted. Needless to say, this is a hack; but I really want to sync my Scrivener projects on multiple machines!
    +
<syntaxhighlight lang=applescript>
 
  --
 
  --
 
  --  AppDelegate.applescript
 
  --  AppDelegate.applescript
Line 279: Line 281:  
    
 
    
 
  end script
 
  end script
 +
</syntaxhighlight>
    
==Conflicts==
 
==Conflicts==

Navigation menu