Adding a diff command (Mac)

Get help for specific problems
Posts: 4
Joined: 12 May 2017

ltoews

I'm trying to add a custom context menu item that will call TextWrangler's twdiff program, but I can't get it to work. Any help or a working example would be greatly appreciated. Here's what I've been trying for the command (all on one line):

"Macintosh HD:Applications:TextWrangler.app:Contents:Helpers:twdiff" "%item_path%" "%item_path2%"
User avatar
Site Admin
Posts: 7052
Joined: 9 Dec 2007

Zenju

Why are you using ":" as path separator?
Posts: 4
Joined: 12 May 2017

ltoews

I copied and pasted the path out of my Dreamweaver preferences dialog, and that's how it was formatted there. I've tried substituting slashes for colons in the FFS custom context menu command line, but still no joy.
User avatar
Site Admin
Posts: 7052
Joined: 9 Dec 2007

Zenju

FreeFileSync expects the native path format. In this case the "Macintosh HD" needs to dropped:
/Applications/TextWrangler.app/Contents/Helpers/twdiff
Posts: 4
Joined: 12 May 2017

ltoews

Tried that with and without the leading slash. Still stumped.
Posts: 4
Joined: 12 May 2017

ltoews

Is there any way to see if there's a logged error message of some sort from FFS when I try to execute that command?
User avatar
Site Admin
Posts: 7052
Joined: 9 Dec 2007

Zenju

Just test the command in the macOS Terminal.
Posts: 2
Joined: 11 Nov 2018

toni

Attention to the "quotes"!
> these yes "
> these no “

Open with TextWrangler
"/Applications/TextWrangler.app/Contents/Helpers/edit" "%local_path%"

Compare with TextWrangler
"/Applications/TextWrangler.app/Contents/Helpers/twdiff" "%local_path%" "%local_path2%"



Open with TextWrangler
"/Applications/TextWrangler.app/Contents/Helpers/edit" "%local_path%"
Compare with TextWrangler
"/Applications/TextWrangler.app/Contents/Helpers/twdiff" "%local_path%" "%local_path2%"
Posts: 2
Joined: 11 Nov 2018

toni

Attention to the "quotes"!
> these yes "
> these no “

Open with TextWrangler
"/Applications/TextWrangler.app/Contents/Helpers/edit" "%local_path%"

Compare with TextWrangler
"/Applications/TextWrangler.app/Contents/Helpers/twdiff" "%local_path%" "%local_path2%"



Open with TextWrangler
"/Applications/TextWrangler.app/Contents/Helpers/edit" "%local_path%"
Compare with TextWrangler
"/Applications/TextWrangler.app/Contents/Helpers/twdiff" "%local_path%" "%local_path2%"
toni, 11 Nov 2018, 14:11

I updated from 10.11.6 El Capitan to 10.14.6 Mojave.
Now "Compare" no longer works.
Anyone have a solution?

(FreeFileSync versione 10.18 - 19.11.2019)
(TextWrangler version 5.5.2 (397016)