Hi there chaps, (With the help of Automator maybe), there is something I've been trying to achieve for a little while, with virtually no success I might add.
Every time a new MacOS is released there are a number of hidden terminal commands I like to play around with. Entering these into terminal though is getting to be a bit of a hassle.
What I wanted to do was have an Applescript application I could write which I could double click that would;
When run, just pop up a dialog box asking me whether I want to apply or remove an effect.
I had thought about something along these lines;
This section is the initial pop up I want to appear when the script is run.
display dialog "Please make your choice" buttons {"Apply Effect, or...", "Remove Effect"} default button 2 with icon 1
--> {button returned:"Remove Effect"}
end
This section is the what I want to appear next, so that if I choose Apply one list of selections will appear and if I choose Remove an alternate list of selections will appear - I'm only showing a few choices for ease.
set hacks_ to {"View hidden files", "Alter iTunes Contrast"}
set chosen_ to (choose from list hacks_ with prompt "Choose your Hack." without multiple selections allowed) as text
if chosen_ is ......... then
end if
In the next section, I would like to have the choice previously made point to and run certain shell scripts- for example:
The View hidden files choice would refer to : defaults write com.apple.finder ShowAllFiles TRUE
The Alter iTunes contrast choice would refer to : defaults write com.apple.iTunes high-contrast-mode-enable -bool TRUE
Any help would be much appreciated.