Make a portion of desktop viewable at all times

I'm looking for a way to make a portion of my desktop viewable at all times. I realize that it's easy to write a script that resizes windows to accommodate this, but I'm looking for something with this added twist:
Just like you can't drag a window behind the menu bar, I'd like to create an area on the left side of my screen, about 300 pixels wide, that windows cannot move over, leaving only that portion of the desktop viewable. When moving windows around, they would just bump into this invisible edge just as they do with the menu bar.
I'm not entirely sure if this can be done in AppleScript, but I figured it would be a good place to start. Please redirect me if there is somewhere else this question would be better suited. For those wondering, I have a Geektools sidebar on my desktop that I would always like visible to me at all times.

The dock padding he is talking about is just a variable name he uses to indicate a distance in pixels from the side of the screen...nothing special.
Trying to get dock abilities, like menu bar abilities, is once again going to be practically impossible. If you want to do all this you will need to write your own program, or edit an open source dock like program, and then give it all the abilities you want in "geek side bar" and have it float on top etc.
As for the topic of applescripting an applet which monitors and moves windows around. To stop getting "firefox-bin" etc. Change the line
set Wins2_ to every window of application Aname_
to the line
set Wins2_ to (every window of application Aname_) who visible is true
Should get rid of all the weird hidden ones.
Finally I made some changes to an old stay open app of mine similar to this but it allows user choice (only through the source code as I didn't want to include more than 1 script) of any border to be extended and won't push your window out beyond the screen (will resize instead).
on idle
try
set horizontalDisplay to 1280
set verticalDisplay to 800
set k to 1 --user accuracy in pixels
set userPixelBorder to {100, 100, 100, 100} -- input of (left,top,right,bottom) borders
set userPixelBorder to {item 1 of userPixelBorder, item 2 of userPixelBorder, (horizontalDisplay - (item 3 of userPixelBorder)), (verticalDisplay - (item 4 of userPixelBorder))}
on error
display dialog "Fatal Initialization Error"
end try
try
tell application "System Events" to set visibleApps to name of every application process whose visible is true
repeat with i from 1 to count items of visibleApps
set appName to item i of visibleApps as text
try
set windowList to ((every window of application appName) whose visible is true)
end try
repeat with j from 1 to count items of windowList
set windowName to item j of windowList
set windowBounds to bounds of windowName
set goodCheck to {false, false, false, false}
repeat while goodCheck is not equal to {true, true, true, true}
--xaxis
if item 1 of windowBounds is less than (item 1 of userPixelBorder) - k then
set item 1 of windowBounds to ((item 1 of windowBounds) + k)
if item 3 of windowBounds is less than item 3 of userPixelBorder then set item 3 of windowBounds to ((item 3 of windowBounds) + k)
else
set item 1 of goodCheck to true
end if
if item 3 of windowBounds is greater than (item 3 of userPixelBorder) + k then
set item 3 of windowBounds to ((item 3 of windowBounds) - k)
if item 1 of windowBounds is greater than item 1 of userPixelBorder then set item 1 of windowBounds to ((item 1 of windowBounds) - k)
else
set item 3 of goodCheck to true
end if
--yaxis
if item 2 of windowBounds is less than (item 2 of userPixelBorder) - k then
set item 2 of windowBounds to ((item 2 of windowBounds) + k)
if item 4 of windowBounds is less than item 4 of userPixelBorder then set item 4 of windowBounds to ((item 4 of windowBounds) + k)
else
set item 2 of goodCheck to true
end if
if item 4 of windowBounds is greater than (item 4 of userPixelBorder) + k then
set item 4 of windowBounds to ((item 4 of windowBounds) - k)
if item 2 of windowBounds is greater than item 2 of userPixelBorder then set item 2 of windowBounds to ((item 2 of windowBounds) - k)
else
set item 4 of goodCheck to true
end if
end repeat
set bounds of windowName to {item 1 of windowBounds, item 2 of windowBounds, item 3 of windowBounds, item 4 of windowBounds}
end repeat
end repeat
end try
return 1 --runs every second
end idle
It still leaks memory but I remember it running for days fine when it was done up all pretty in xcode broken into a couple of scripts.
One more thing as a solution to memory problems is if you want to script a key combination that clears a strip of the desktop sort of like expose. I edited that unreadable code for this one.
set Wdisp_ to 1280 --width of display
set Pixnum_ to 300 --number of pixels to clear from the left side
set Wins1_ to {}
tell application "System Events" to set A_ to name of every application process whose visible is true
repeat with i_ from 1 to count items of A_
set Aname_ to item i_ of A_
try
set Wins2_ to every window of application Aname_
repeat with j_ from 1 to count items of Wins2_
set end of Wins1_ to item j_ of Wins2_
end repeat
end try
end repeat
repeat with i_ from 1 to count items of Wins1_
set W2_ to item i_ of Wins1_
try
set B_ to bounds of W2_
set LB_ to item 1 of B_
if LB_ < Pixnum_ then
set RB_ to (item 3 of B_) + (Pixnum_ - LB_)
if RB_ is less than Wdisp_ then
set bounds of W2_ to {Pixnum_, (item 2 of B_), (RB_), (item 4 of B_)}
else
set bounds of W2_ to {Pixnum_, (item 2 of B_), (Wdisp_), (item 4 of B_)}
end if
end if
end try
end repeat
Enjoy

Similar Messages

  • How to run a safari window in the background at all times?

    Ok, so you are probably wondering why I want to do this. Allow me to explain. The website twitch.tv is a streaming service for gamers, and there is a browser plugin specifically for the site called betterttv.
    One feature of this plugin is that you will get a notification whenever someone you are following starts broadcasting, right in your notification center. But because its a browser plugin, and is specifically for this one website, it requires a safari window to be open with the website twitch.tv in order to push the notifications.
    So my question is... how can I make a browser window stay open at all times and run in the background with this website open so that I get my notifications? I had the idea that I could retain the window even when I "quit" safari, because I can run a seperate instance of it in the form of Webkit Nightly which isnt affected by safari not being running.
    But I am still oblivious as to how I would set up a window like this, and it has to start at login in addition to being running throughout the day. (I shut my Mac off at night.) Any amount of help would be appricated

    I'm well aware of how to minimize thanks, and it *is* possible to have a Safari window open if you quit it, because you can run it as a separate instance by using WebKit Nightly...
    I am just looking for the best way to set it up so that a WebKit Nightly window will open upon startup, navigate to that webpage, and hide itself. Preferably in the background. This could be done using a .command file or a startup script in automator. My question is.. What is the best direction to take?

  • Can i lock or make uneditable portions of a pages document

    Am new to Mac and forums. Am trying to create my own template using Pages 09. Have worked out through research you cannot create 'form fields' in pages as you can in Microsoft word. can i lock  (or make uneditable) portions of my pages document.
    Thanks

    I think I may have found my answer in someone elses post.  Sorry for wasting time. As I said, am new to all things Mac and forums
    Oct 1, 2009 4:29 PM 
    I was curious if I could create a document that has locked text except for where I want to type in information. Ie. If the document says Date: I would like the "date" text to be uneditable, but to be able to type in the date... if that makes sense. 
    Mac Mini, Mac OS X (10.5.6)
    Correct Answer by Jerrold Green1  on Oct 1, 2009 8:01 PM 
    While Peter is checking his records, I'll mention the first thought I had on reading your request. You could create a document with only the fixed information and Print or Export it to PDF. Then Insert the PDF into a Pages document as a Floating Object and Place Text Boxes where you want to be able to input variable text. Jerry 
    See the answer in context

  • Photoshop to dreamweaver viewable in all aspect ratios

    after importing a photoshop designed site into dreamweaver how do you convert all tables/images to percents?
    I designed a website in photoshop and exported it for web and devices. Now I want to make the website available for all aspect ratios. In order to do that I need the table containing the images to be a fixed percent such as 95% height and width and ALL the images and tables inside the site to be correct proportions to be able to scale with the website to be able to expand and contract and be viewable on all aspect ratios! How do I do this in dreamweaver?!??!?!

    after importing a photoshop designed site into dreamweaver how do you convert all tables/images to percents?
    If this page is to be displayed on the web, the answer is you don't.  Using Photoshop (or FW) HTML as a real-world web page is a dreadful mistake.  That code is intended for, and only designed to be useful for rapid prototyping, i.e., creating demonstration pages that are used in controlled environments.  When used on the web (i.e., a non-controlled environment), such pages develop gaps and breaks between layout elements and generally fall apart unexpectedly.
    How do I do this in dreamweaver?!??!?!
    DW has no such 'Easy button'.  To convert a table-based layout containing images to what you are describing would require careful and tedious manual modification to the code.  In addition, browsers are not particularly smart at enlarging images (using only a pixel doubling method to do so).  This causes photographic images to degrade in cosmetic appearance quite rapidly, particularly when you exceed the pixel content of the original image.  Of course, you could always start with the highest quality, largest dimension image you have for each such image, but then your page would likely weigh more than Manhattan when you finished.
    In other words, there aren't great ways to achieve what you are asking for.

  • Customise desktop background for all network user accounts

    Hi,
    I have 12 MAC OS X 10.6 Clients on A Windows 2008 R2 Server. I cannot use Group Policies from Active Directory to customise my default user desktops on the MACs. Can I do this from the MAC stations? It has to work for network users not just local accounts?
    Thanks,
    Tim

    If you're looking to make a desktop background universal and system wide regardless of user, then it's easy. The default user folder is in /System/Library/User\ Template
    It's protected from access unless you're logged in as root, either in the gui or terminal.
    Just change the pertenant preference file in the Library folder to reflect your new desktop background and all should be well.  Any time a NEW user logs in, when their home folder is created, it will include that desktop background pref file. 
    If you're running the magic triangle, then you just have to set that preference in Workgroup Manager.
    If you're not sure or comfortable with this, then write back and we'll help you further.  More info on your server set up etc would be helpful in this regard.
    -Graham

  • I want to make shortcuts to my desktop

    I want to make shortcuts to my desktop for certain websites that I use all the time. In Explorer, I just right clicked and sent a shortcut.
    However, Firefox instructs me to click on the "world" symbol to the left of the website address to make the shortcut. This does not work because I do not not have a "world" symbol next to the web address. I either have a padlock or a binoculars (well it looks like binoculars) symbol and so I am unable to do what Firefox suggests.
    This is driving me crazy and is one of the things (as well as the bookmark system) that I don't like about Firefox.
    Is there someone who can please tell me how to do it?
    Thank you.

    Also, if you do this often, there is an add-on for sending a shortcut to Windows without having to drag it manually. I haven't tried it myself:
    * Its page on the Add-ons site: https://addons.mozilla.org/firefox/addon/deskcut/
    * A review describing an extra setup step if it's not working (the extension was last updated in 2011): https://addons.mozilla.org/firefox/addon/deskcut/reviews/490684/

  • HT201304 It would be tremendously helpful to be able to access, set restrictions, and make changes from the parents device to all devices under the same iTunes account, so that I could make changes to my kids devices without physical access.

    Please help!
    It would be tremendously helpful to be able to access, set restrictions, and make changes from the parents device, to all devices under the same iTunes account, so that I could make changes to my kids devices without physical access.
    I understand that I can set up a different Apple ID for the kids devices, or take physical control of the device and make the changes myself. However, my teenage son is technically savvy enough to have a job in Silicon Valley, as are most young people these days. However, in order to access his devices the current way, I first have to bypass the four digit pass code. This starts a fight of why I need in the device and continues to escalate. The argument that I am the parent will gain access but the fight is simply exhausting, and quite frankly shouldn't have to happen at all. He is not yet an adult, he did not pay for his iPad or iPhone and I, as a parent, should have not only have the right to change options at will, and from anywhere, but look at history or current activity when I feel like it.
    I currently have the settings where app and in-app purchases require my password to be put in, and he must come to me to type it in, but I need more control and would like, and should be able to access any of our six devices and make individual changes simply by logging in to my account, with my password.
    If I can see all my devices on the "Lost My iPhone" app, this technology should be easy to make happen.
    C'mon parents! I have a pretty good kid, given all things that they can get into, but I am not stupid. For everything I see has been done, there is much more I haven't seen. I want my children to be kept safe and be able to know what they are looking at or listening to. We parents are the only ones who know our beliefs and what our kids can handle and when.
    Thanks for any support or information that I may be missing in order to fulfill my request.

    There are mobile device management solutions that can do this, including in Apple's OS X Server system, but most parents generally find that setting this up is more work than it's worth. If you're interested, though, there are a couple that at least purport to be free (I don't know if there are any hidden "gotchas"):
    http://www.unwireddevicelink.com/features/
    https://meraki.cisco.com/products/systems-manager
    and Apple's system:
    http://www.apple.com/osx/server/features/#profile-manager
    I don't think any, however, allow you to see current activity or browser history. iOS doesn't expose those to access from MDM solutions, to the best of my knowledge.
    Regards.

  • Full ipod mini... how do i make it so I can still have all my songs on ...

    how do i make it so that I can have all my songs on itunes, but only have some of them on my ipod?
    there are those blue boxes with ticks in them, do they have anything to do with it?
    thanks
    xx

    I the blue box is uncehcked and you open iTunes prefs -> iPod and select Update only checked songs, only songs with a check in front will get updated onto the iPod.
    I only use the checkmarks for stuff like Christmas songs and such I only want rarely on the iPod.
    If your library is too large to fit on the iPod, iTunes will create a playlist for you.
    Here's how I do it instead.
    Create a Smart Playlist.
    Make it Match Rules;
    My rating is not one star.
    Not heard in last 3 days.
    Limit it to 3700 MB (for a 4 GB mini).
    Open iTunes prefs -> iPod and select Auto update only this playlist.
    Also, deselect Enable disk use.
    When you want to change the music on the iPod, simply open the Smart playlist, select all the songs on it (ctrl A) and press delete.
    They will all go away and it will fill up again. (It's a Smart Playlist)
    Then connect the iPod to update it.
    When listening, if there are songs you do not like, rate them one star and they will not get put back onto the iPod.

  • My father updated his iPhone and once he did that he would receive all of my texts and iMessages, is that because we are on the same iCloud account? And if that's why how can I remove it or make it so he doesn't get all my messages

    My father updated his iPhone and once he did that he would receive all of my texts and iMessages, is that because we are on the same iCloud account? And if that's why how can I remove it or make it so he doesn't get all my messages

    you can change the accounts of different apps in the phone's settings menu.

  • I want to upgrade my current desktop PC 1030cq all in one graphics card to 1gb

    i want to upgrade my current desktop PC 1030cq all in one graphics card to 1gb

    RS, welcome to the forum.
    Which of these computers is yours?  We need this information to answer your questions correctly.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • If I have to format an external hard drive to make it Mac compatible, will it delete all the content in the external hard drive?

    If I have to format an external hard drive to make it Mac compatible, will it delete all the content in the external hard drive?

    As others have said, the answer to your question is a big YES.  Formatting a drive will delete everything!
    To keep your data, yet reformat the drive for optimal Mac compatibility, you will need to:
    1) copy your files to a different hard drive (I would recommend two different locations if you value your data)
    2) repartition/format the external drive
    3) then copy the files back to the external.
    You haven't given details but if you need the external to ONLY be compatible with the Mac (and no longer care if if can be read by Windows), then you will want to partition the drive using the GUID partition scheme, and format as the (HFS+) "Mac OS Extended (Journaled)" filesystem.  You can do so using the built-in "Disk Utility" application on your Mac (in the Applications/Utilities directory).  Here are instructions:
    http://support.apple.com/kb/ph5845
    If you need the drive to be compatible with both Mac and Windows computers then please post that so someone can recommend a solution for your specific needs.

  • How do I make a photo my desktop in iPhoto 9.2 Thanks

    Can anyone help with this - How to make a photo a desktop picture in iPhoto 9.2  Thanks

    Select the pic you prefer and use the Share Menu on top of screen.Note the 'Set Desktop' option.
    You can also do this from the Desktop and Screensaver PreferencePane
    Regards
    TD

  • How to make the APEX tree in the "Expand All" shape by default?

    Could anybody please enlighten me on how to make the APEX tree in the "Expand All" shape by default please? I created an APEX tree and by default it's in the "Collapse All" shape. I am using APEX 4.1.0.00.21

    Hi,
    you can check the view source of html and check the onclick code written on that plus sign(Expand All), just copy that onclick javascript code and put it on page javascript event.
    Thanks,
    Jaydip Bosamiya
    +91-76000 23053
    http://jbosamiya.blogspot.com

  • How to make Adobe as your default viewer for all your PDF file instead of the Preview given? Thanks

    How to make Adobe as your default viewer for all your PDF file instead of the Preview given? Thanks

    you need to "Get Info" on the file first. Select it, right click and select 'Get Info' in the menu.
    In the window that pops up, near the bottom, the "Open With" drop down menu needs changed. If the drop down menu does not present the one you want, select "Other" and find it.

  • How do I get events in my iCal on my laptop which have audible alerts to make noise on my iPod/iPad and those which don't have audible alerts to not make noise? At the moment they all make a noise.

    How do I get events in my iCal on my laptop which have audible alerts to make noise on my iPod/iPad and those which don't have audible alerts to not make noise? At the moment they all make a noise.

    I have been searching, if you own a mac at home, then you can use this, it worked for me
    https://discussions.apple.com/docs/DOC-2464

Maybe you are looking for