IPAD must-haves. And fun-to-haves.

Brighten your iPad with a colorful cover, stream to your TV, download pictures from your digital camera, and more. There’s already so much you can do with iPad and iPad mini

Apple Wireless Keyboard

The incredibly thin Apple Wireless Keyboard uses Bluetooth technology, which makes it compatible with iPad

Apple unveils iPad mini: ‘Thin as a pencil, light as paper’

iPad inspires creativity and hands-on learning with features you won’t find in any other educational tool

Lightning connector and FaceTime HD camera

Apple announces 4th generation iPad packing an A6X CPU

Pages

Showing posts with label itself. Show all posts
Showing posts with label itself. Show all posts

Thursday, March 21, 2013

Re: Applescript/Shell Script reference to the app itself


figured it out mate, my sound output app had a space in the name which was making applescript skitz out, i just placed an underscore to make it sound_output and all problems were solved, thx dude you're a legend, also had to remove SwitchAudioSource as it was now redundant, here is the finished and working script, thankyou so much for your help:



View the original article here

Applescript/Shell Script reference to the app itself


Hi guys,


i have made an applescript with the following source code:


"


set sound_output to button returned of (display dialog "Select Output Source" buttons {"Computer", "TV"} default button "TV")


if sound_output is "Computer" then do shell script ("cd /Applications/SwitchAudioSource-v1; ./SwitchAudioSource -s 'Built-in Output'")


if sound_output is "TV" then do shell script ("cd /Applications/SwitchAudioSource-v1; ./SwitchAudioSource -s 'HDMI'")


"


I am wondering if there is a way to refer to the abovementioned executable ./SwitchAudioSource (currently located in /Applications) in my compiled applescript somewhere? That is:


Show Package Contents > Contents > Resources > and dump the executabe ./SwitchAudioSource here, and then modify my script to somehow refer to within itself so that my applescript will work regardless of where i place it. Desktop, /Users, even pictures,


i hope this makes sense, thankyou for all your help in advance, cheers mate 


View the original article here

Thursday, March 14, 2013

Applescript/Shell Script reference to the app itself


Hi guys,


i have made an applescript with the following source code:


"


set sound_output to button returned of (display dialog "Select Output Source" buttons {"Computer", "TV"} default button "TV")


if sound_output is "Computer" then do shell script ("cd /Applications/SwitchAudioSource-v1; ./SwitchAudioSource -s 'Built-in Output'")


if sound_output is "TV" then do shell script ("cd /Applications/SwitchAudioSource-v1; ./SwitchAudioSource -s 'HDMI'")


"


I am wondering if there is a way to refer to the abovementioned executable ./SwitchAudioSource (currently located in /Applications) in my compiled applescript somewhere? That is:


Show Package Contents > Contents > Resources > and dump the executabe ./SwitchAudioSource here, and then modify my script to somehow refer to within itself so that my applescript will work regardless of where i place it. Desktop, /Users, even pictures,


i hope this makes sense, thankyou for all your help in advance, cheers mate 


View the original article here