Command button isn't working


#1

Hello,

I’m trying to export my project to Unity using Tiled2Unity. I put in this command, and I get an error, “The command failed to start.”:

open -a "/Applications/Tiled2UnityMac.app" --args %mapfile

I thought maybe the error was maybe due to a typo, but these commands yielded the same result:

open %mapfile

/Applications/TextEdit.app/Contents/MacOS/TextEdit %mapfile

echo "Hello World"

Hopefully I’m posting this in the right place. I saw this post, but none of the stuff there seemed to help.


(Thorbjørn Lindeijer) #2

Which Tiled version? I just tried with the latest development snapshot and couldn’t reproduce the issue. Some notes:

This would not do anything because it would try to open the current file in Tiled, and Tiled just detects that it’s already open and the “current file”.

For me, this started TextEdit, but then TextEdit complained that it didn’t have permission to open the file. No idea why, because the open -t %mapfile could open the map fine in a text editor.

This command won’t be visible unless you right-click the entry and choose “Execute in Terminal” (or you open the Debug Console window, which can show the command output in the development snapshot version).


#3

I’m running Tiled 1.0.3 on macOS 10.13.1

I tried to replicate what you got, but running /Applications/TextEdit.app/Contents/MacOS/TextEdit %mapfile through Tiled gave me the same error. Running /Applications/TextEdit.app/Contents/MacOS/TextEdit path\to\mapfile through the system prompt led to the .tmx opening in TextEdit with no issue.

I’ve just tried this, but nothing pops up in the debug console, and I still get the error message “The command failed to start.”

Is it possible there are compatibility issues with the 9 November 2017 macOS update?