I need for help about my first Applescript

Joined
May 15, 2019
Messages
1
Reaction score
0
Points
1
Hello,
this my first Applescript.

I need to open many shell scripts in Terminal windows, any window with different profile. So any output results with different bg, fg colors and fonts.

The scripts works good but there's a problem. While the 1st and the 2nd window are perfect. when I launch the 3rd scripts the 2nd window changein the color of the 3rd. The 3rd change in the color of the 4th and so on.

Could you help me?

Code:
tell application "Finder"
	activate
	open document file "NOMI ARTISTI, TOTALE ARTISTI E BRANI PROVA & 3 B CLH" of folder "SCRIPTSESEGUIBILI3.0ELABORAZIONE" of folder "SHELL" of folder "fare back up" of folder "Documents" of folder "EB" of folder "Users" of disk "IMMAGINI"
	
	
	tell application "Terminal"
		do script "NOMI ARTISTI, TOTALE ARTISTI E BRANI PROVA & 3 B CLH" in window 1
		set current settings of selected tab of window 1 to settings set "CLH"
		
	end tell
	
end tell
 
Joined
Jun 11, 2019
Messages
1
Reaction score
0
Points
1
Hello,
this my first Applescript.

I need to open many shell scripts in Terminal windows, any window with different profile. So any output results with different bg, fg colors and fonts.

The scripts works good but there's a problem. While the 1st and the 2nd window are perfect. when I launch the 3rd scripts the 2nd window changein the color of the 3rd. The 3rd change in the color of the 4th and so on.

Could you help me?

Code:
tell application "Finder"
	activate
	open document file "NOMI ARTISTI, TOTALE ARTISTI E BRANI PROVA & 3 B CLH" of folder "SCRIPTSESEGUIBILI3.0ELABORAZIONE" of folder "SHELL" of folder "fare back up" of folder "Documents" of folder "EB" of folder "Users" of disk "IMMAGINI"
	
	
	tell application "Terminal"
		do script "NOMI ARTISTI, TOTALE ARTISTI E BRANI PROVA & 3 B CLH" in window 1
		set current settings of selected tab of window 1 to settings set "CLH"
		
	end tell
	
end tell

YOU CAN'T PUT "tell application Terminal" block inside "tell application Finder" block. Is wrong. Try this:

Code:
[I]tell application "Finder"
	activate
	open document file "NOMI ARTISTI, TOTALE ARTISTI E BRANI PROVA & 3 B CLH" of folder "SCRIPTSESEGUIBILI3.0ELABORAZIONE" of folder "SHELL" of folder "fare back up" of folder "Documents" of folder "EB" of folder "Users" of disk "IMMAGINI"
end tell

tell application "Terminal"
	do script "NOMI ARTISTI, TOTALE ARTISTI E BRANI PROVA & 3 B CLH" in window 1
	set current settings of selected tab of window 1 to settings set "CLH"
end tell[/I]
 
Last edited:

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top