-
ErrorHelper ($oopsy) Will echo error msg + exit(), so we avoid the if/else pattern in our command code generally for use with the API calls .
-
tar_exclusion_list.txt This tells the tar command what files to skip over. Will probably need refining with time.
templateInfo diff of the pieces:
preview: renders it out fuller (ie: styles put inline), editable comments removed, but merge tages still show. source: has all the editable comments in it - basically, the template info still in there, but its the 'compiled' one from what I understand
switch campaign to the html mode
- need a way to force campaignUpdate to recognize html evenif campaign was a template before.
- otherwise, forced to work with template.
On Commands / error checking
See how it handles the return values to check if exit_discard
res=$(CocoaDialog inputbox --title "Template Name"
--informative-text "Creating a new template from the current file."
--button1 "Yes!!!" --button2 "Cancel")
[[ $(head -n1 <<<"$res") == "2" ]] && exit_discard
res=$(tail -n1 <<<"$res")
#empty string - basically can't have 1 as a name :)
#if its a problem, can check length of res in entirety
[[ "$res" == "1" ]] && echo "No empty name allowed" && exit_show_tool_tip