• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: changing background image of Terminal.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing background image of Terminal.app


  • Subject: Re: changing background image of Terminal.app
  • From: "Manoah F. Adams" <email@hidden>
  • Date: Fri, 21 Jun 2013 15:15:50 -0700

Hi,

Terminal does not allow the background *image* to be changed directly via applescript, as it does for the *color*...
(at least for my Terminal, OS10-4)

To change the color...
---
tell application "Terminal" to set background color of window 1 to "blue"
---

To change the background image you need to directly write to the preferences file...
(and of course use your own desired file path)

-- to set an image/photo --
do shell script "defaults write com.apple.Terminal BackgroundImagePath '/Users/manoahfadams/Pictures/Wallpapers/Grass Blades.jpg';"

-- to un-set image (revert to coloring), set to empty path, (note: those are two single quotes just before the end) -- do shell script "defaults write com.apple.Terminal BackgroundImagePath '';"

---
The change will be reflected in any new Terminal windows opened (not currently open windows).


Hope that helps,
Manoah Adams
<email@hidden>





On Jun 21, 2013, at 14:02 , Xavier Noria wrote:

Hi, I have seen some snippets out there that allow you to change the background color of Terminal.app. I am trying to change the background picture in a similar manner:

osascript -e 'tell application "Terminal" to set background image of current session of current terminal to POSIX file "..."'

but that yields

35:51: syntax error: A identifier can’t go after this identifier. (-2740)

Could anybody shed some light? (I don't even know if it is possible.)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40federaladamsfamily.com
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >changing background image of Terminal.app (From: Xavier Noria <email@hidden>)

  • Prev by Date: changing background image of Terminal.app
  • Next by Date: Re: AppleScript to erase one mounted volume if it's modification date is date is greater than one day?
  • Previous by thread: changing background image of Terminal.app
  • Next by thread: Re: changing background image of Terminal.app
  • Index(es):
    • Date
    • Thread