Jump to content

Save bug in OSX


Recommended Posts

http://forums.gibberlings3.net/index.php?showtopic=9733

 

Perhaps it's worth to include a fixer for the OSX "can't save" bug (whereby bg2/temp is a file by default, rather than a directory, making saves impossible)?

 

ACTION_IF ~%WEIDU_OS%~ STRING_EQUAL_CASE ~osx~ THEN BEGIN
<<<<<<<< fix-temp
#!/bin/sh
file temp | grep "directory" || (rm -r temp; mkdir temp)
>>>>>>>>
 COPY ~fix-temp~ ~fix-temp~
 AT_NOW ~sh fix-temp~
END

 

I'll leave to devSin the pleasure of answering further questions on OSX pleasantries and/or test :)

Link to comment

I'd rather learn Python and use that for scripting purposes than learning everything about bash & CLI commands :)

 

BTW, according to DS' suggestions, change the inlined file to

#!/bin/sh
test -f temp || (rm -r temp && mkdir temp)

Link to comment

The code for this is wrong, and hence, useless. We want

ACTION_IF ~%WEIDU_OS%~ STRING_EQUAL_CASE ~osx~ THEN BEGIN
<<<<<<<< fix-temp
#!/bin/sh
test -f temp && (rm -f temp && mkdir temp)
>>>>>>>>
 COPY ~fix-temp~ ~fix-temp~
 AT_NOW ~sh fix-temp~
END

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...