Please visit the new Mac-Forums Facebook page:
Like Mac-Forums Facebook Page




Results 1 to 2 of 2
  1. #1
    I need for help about my first Applescript
    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

  2. #2
    Quote Originally Posted by Manuscript View Post
    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:
    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
    Last edited by KniazidisR; 06-11-2019 at 03:04 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. applescript - how to click a button an an app maade from an applescript
    By barryghall in forum macOS - Operating System
    Replies: 0
    Last Post: 09-11-2017, 06:35 PM
  2. applescript help
    By primrey in forum macOS - Development and Darwin
    Replies: 2
    Last Post: 02-12-2012, 04:11 PM
  3. Help Please! I need Applescript help!
    By jf4m in forum macOS - Development and Darwin
    Replies: 2
    Last Post: 12-02-2011, 09:34 AM
  4. Applescript help please?
    By thtguyjosh in forum macOS - Apps and Games
    Replies: 8
    Last Post: 08-22-2010, 07:22 PM
  5. AppleScript Help Please
    By IceCreamMan in forum macOS - Apps and Games
    Replies: 5
    Last Post: 04-09-2007, 04:59 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •