-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DeleteAllAliases = Lua script + supporting functions
- Loading branch information
1 parent
b99acf8
commit 458568d
Showing
6 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
properties = {} | ||
|
||
deleteem = PromptOption('This will delete all aliases. Are you sure you want to proceed?','Delete aliases','Yes','No') | ||
|
||
if deleteem == "Yes" then | ||
reallysure = PromptOption('Are you really sure you want to do this?', 'Confirm?', 'Delete', 'Cancel') | ||
if reallysure == "Delete" then | ||
result = RunCommand('deleteAllAliases', properties) | ||
if result['res'] == 200 then | ||
msg = ShowMessage('All aliases have been deleted!') | ||
Log("Following Groups/Models/SubModels had aliases that were removed:") | ||
Log(result['models']) | ||
else | ||
msg = ShowMessage('No aliases found.') | ||
Log(result['msg']) | ||
end | ||
else | ||
msg = ShowMessage('Smart move!') | ||
end | ||
else | ||
msg = ShowMessage('Smart move!') | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters