I have been trying to combine some tips in the thread on inserting an image url and the thread on using filemerge for svn merge to implement using filemerge using the diff bundle.
For this I am using the shell command
exec "/path/to/filemerge.app" -left $leftfile -right $rightfile
This opens filemerge but does not allow access to TextMate until you quit file merge. Is there a way to allow the exec command to run in the background so that filemerge opens and then allows access to textmate to edit a file.
I am also using Alan's code to allow selection of one of the files via a finder dialog box leftfile=$(osascript -e 'tell app "SystemUIServer"' -e activate -e 'return POSIX path of (choose file with prompt "Pick an file:")' -e 'end tell').
This does not allow access to packages such as a .wdgt folder. Is there a way to allow the finder dialog box to access a folder such as this. This would also apply to a .app folder.
Many thanks,
Anthony
On 23/5/2006, at 0:47, Anthony Underwood wrote:
This opens filemerge but does not allow access to TextMate until you quit file merge. Is there a way to allow the exec command to run in the background so that filemerge opens and then allows access to textmate to edit a file.
Add ‘&>/dev/null &’ to the command to have it run asynchronously.
Thanks Allan,
I now have the filemerge command working a treat!!
Anthony
On 23 May 2006, at 18:59, Allan Odgaard wrote:
On 23/5/2006, at 0:47, Anthony Underwood wrote:
This opens filemerge but does not allow access to TextMate until you quit file merge. Is there a way to allow the exec command to run in the background so that filemerge opens and then allows access to textmate to edit a file.
Add ‘&>/dev/null &’ to the command to have it run asynchronously.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
I am also using Alan's code to allow selection of one of the files via a finder dialog box leftfile=$(osascript -e 'tell app "SystemUIServer"' -e activate -e 'return POSIX path of (choose file with prompt "Pick an file:")' -e 'end tell').
This does not allow access to packages such as a .wdgt folder. Is there a way to allow the finder dialog box to access a folder such as this. This would also apply to a .app folder.
You can add the ability to enter packages to the applescript, by including "with showing package contents". You want:
leftfile=$(osascript -e 'tell app "SystemUIServer"' -e activate -e 'return POSIX path of (choose file with prompt "Pick an file:" with showing package contents)' -e 'end tell')
all on one line of course.
-Jacob