Change app Icon when script is completed.

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Change app Icon when script is completed.
# 1  
Old 07-01-2011
Change app Icon when script is completed.

In a recent topic, I asked how I could run a shell code without having to deal with terminal opening.
What I'm trying to accomplish now is to make my app change it's icon when the code is complete.

(With complete I mean when the process is done.)

Thanks in advance. Smilie
# 2  
Old 07-01-2011
You mean run a script in xterm iconified and at the end of the script, change the icon title and wait for viewing or return to command prompt? Sounds like a tk-tcl thing, no: http://www.ibiblio.org/pub/Linux/docs/HOWTO/Xterm-Title.
# 3  
Old 07-01-2011
Thank you DGPickett.
I'm quite new to this so I don't try to get ahead of myself but I will try reading and understanding it.

Again
I've just made a simple script in AppleScript-editor that tells a driver to enable a device and saved it as an app. (rather than start terminal and enable it from there) I've manually replaced the Icon of the app in it's content. I want that Icon to change to another Icon when the process complete.

It's a small step, but eventually there is going to be a lot more to it.
I also want the icon of the app to change back to the default icon when the device is turned off. But I think it requires the source code of the driver and most likely more programming language Smilie ( Chances are that it isn't even possible to do so, because the device is officially unsupported )
# 4  
Old 07-01-2011
Probably easy to do, if you google for the right words. My case was for x and simple UNIX; I am no Apple guts guru. Is it shell script or AppleScript?
# 5  
Old 07-01-2011
I created it in AppleScript.

I tried to google for it with keywords like "Change icon Applescript process complete" and things similar to that, but all I could find are topics like "How to I change icon of a app?" etc..

I do not wish to start a topic for every question I might have, but I don't know where else to turn.
# 6  
Old 07-01-2011
Well, I expect the applescript has to loop or something at the tail of the script after asking for the icon change, so process complete is asking too much of google. Less is more, but the hit is discouraging: changing icons with an AppleScript ? [Archive] - The macosxhints Forums
or not free: http://change-applescript-icon.fyxm.net/
# 7  
Old 07-01-2011
I think I found it, but I don't know how to reference it to it's own application/Resources folder.

icon of application "icon path"

Any idea how to do so?
Thank you.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Print script is completed successfully or not

Hai guys I am running three shellscripts through Gtk2-Perl(GUI) these are the scripts Drccalibrescript1 script2 script3 Gtk2-Perl(GUI) drccalibre -> If I run this script through Gtk2-Perl(GUI) these are results of the drccalibrescript1 . summary/.results I have to find size of... (1 Reply)
Discussion started by: kiran425
1 Replies

2. Shell Programming and Scripting

Is it possible to change shell icon?

I have an application that runs through bash shell and i want to change the shell icon , so when i copy my application to another computer the shell can still run , can i do that ? because i try with .desktop its failed (0 Replies)
Discussion started by: caladblog
0 Replies

3. UNIX for Dummies Questions & Answers

launchctl loads app with icon (OS X)

We are deploying an app to our students that is running as a daemon. It keeps them from using certain software. The problem is that when we initially deploy it we don't want to require a restart. So we decided to use launchctl to load the daemon manually. When we do it this way, though, the... (4 Replies)
Discussion started by: nextyoyoma
4 Replies

4. OS X (Apple)

Shell Script to change desktop short cut Icon

I have installed my flash application using shell script. I have created short cut to desktop. Now i want to change the default short cut Icon. Please tell me script to change the short cut icon. ---------- Post updated at 12:54 AM ---------- Previous update was at 12:33 AM ---------- Working... (0 Replies)
Discussion started by: rohaneee
0 Replies

5. Shell Programming and Scripting

Completed bash script for plasma TV

My script. For plasma TV connected to PC and used as monitor. required It is windows moving scrip t- floating windows. It move all windows what was ever focused. If window lager than widthconst heightconstscript uses xoc and yoc position for it. I use "Relative upper-left" for correction.... (2 Replies)
Discussion started by: 654321
2 Replies

6. Shell Programming and Scripting

OS X: How to run script from Finder as icon

Hello, Running Mac OS X 10.6.8. I have this very simple script within a directory where I play (modify, compile, run) with some java code. When I'm finished I run this script to erase all the .java and .class files and copy clean versions from the subdirectory Backup. I can run this script by... (0 Replies)
Discussion started by: HotPez
0 Replies

7. Shell Programming and Scripting

How to direct a script to a new web page after a script got completed?

Hi , I have a cgi code with shell script on it.I am submitting a form in the first.cgi.These values are posted to second.cgi.Second.cgi do some process with these values. After that i want to direct my page from second.cgi to first.cgi. What is the command i can use from cgi(shell) script? ... (2 Replies)
Discussion started by: rajbal
2 Replies

8. UNIX for Dummies Questions & Answers

Change an Icon

Dear Experts I have made an Icon and now I am going to change a file Icon to new one. I am using Solaris 8. 1- What is the best format to save an Icon 2- How can I change the Icon of a certain type or just one file or folder to the new Icon which I have designed. Any advises would be highly... (1 Reply)
Discussion started by: Reza Nazarian
1 Replies
Login or Register to Ask a Question