Set sidebar width of (Finder window 1) to 0 - (no longer working for me)

on script_title()
Filename : finderwindowprops.scpt (Script Debugger)
Author : Bill Hernandez
Version : 1.0.0
Updated : Thursday, December 14, 2006 ( 6:01 PM )
end script_title
-- ---------+---------+---------+---------+---------
on script_notes( )
Setting the sidebar width for finder windows is not working consistently,
nor correctly for me. I had written several scripts to standardize the
display of windows on screen several months ago, and they have quit working
during the last couple of versions of the OS, not sure what has happened ?
end script_notes
-- ---------+---------+---------+---------+---------
on run
tell me
set this_folder to (path to current user folder)
SetupWindow(this_folder)
if (ChooseTest() = 1) then
TestOne(this_folder)
else
TestTwo(this_folder)
end if
set str to ""
set str to str & "The Sidebar Width Should be Zero" & return & return
set str to str & "It had worked well several months ago when I was doing some "
set str to str & "window stacking, but it seems to be broken for me..." & return & return
set str to str & "iMacG5 running OSX 10.4.8" & return & return
ShowMsg(str, 10)
end tell
end run
-- ---------+---------+---------+---------+---------
on SetupWindow(whichFolder)
tell application "Finder"
activate
set counter to 1
try
open whichFolder
select Finder window 1
on error
set win to make new Finder window
end try
set bounds of (Finder window counter) to {20, 60, 700, 700}
set current view of (Finder window counter) to icon view
set toolbar visible of (Finder window counter) to true
set sidebar width of (Finder window counter) to 300
set w_props to get properties of Finder window 1
set str to ""
set str to str & "The Sidebar Width Should be 300" & return & return
set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
my ShowMsg(str, 0)
end tell
end SetupWindow
-- ---------+---------+---------+---------+---------
on TestOne(whichFolder)
tell application "Finder"
activate
set counter to 1
try
open whichFolder
select Finder window 1
on error
set win to make new Finder window
end try
set bounds of (Finder window counter) to {20, 60, 600, 600}
set current view of (Finder window counter) to list view
set toolbar visible of (Finder window counter) to true
set sidebar width of (Finder window counter) to 0
set w_props to get properties of Finder window 1
set str to ""
set str to str & "The Sidebar Width Should be Zero" & return & return
set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
my ShowMsg(str, 0)
end tell
end TestOne
-- ---------+---------+---------+---------+---------
on TestTwo(whichFolder)
tell application "Finder"
activate
set w_props to {}
set w_props to w_props & {sidebar width:0}
set w_props to w_props & {current view:list view}
set w_props to w_props & {toolbar visible:true}
set w_props to w_props & {statusbar visible:true}
set w_props to w_props & {bounds:{20, 60, 400, 600}}
try
open whichFolder
select Finder window 1
on error
set win to make new Finder window
end try
set w_ref to Finder window 1
set properties of w_ref to w_props
set w_props to get properties of Finder window 1
set str to ""
set str to str & "The Sidebar Width Should be Zero" & return & return
set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
my ShowMsg(str, 0)
end tell
end TestTwo
-- ---------+---------+---------+---------+---------
on ChooseTest()
tell application "Finder"
activate
set s to ""
set s to s & "The sidebar width is inconsistent no matter which method I use." & return & return
set s to s & "Sometimes there is a sidebar, sometimes there is none, particularly "
set s to s & "with a window that already exists." & return & return
set s to s & "Method one seems to work better, but does not always hide the sidebar." & return & return
set s to s & "Please select a choice..."
set b1 to "TestOne"
set b2 to "TestTwo"
set aReturn to display dialog s buttons {b1, b2} default button {b2}
if (button returned of aReturn = b1) then
return 1
else
return 2
end if
end tell
end Choose
-- ---------+---------+---------+---------+---------
on ShowMsg(s, howLong)
tell application "Finder"
activate
if (howLong = 0) then
set theTIme to 3
else
set theTIme to howLong
end if
set b1 to "OK"
display dialog s buttons {b1} default button {b1} giving up after theTIme
end tell
end ShowMsg
-- ---------+---------+---------+---------+---------

This is a re-post since I learned how to format the output a little nicer...
on script_title()
   Filename : finderwindowprops.scpt (Script Debugger)
   Author : Bill Hernandez
   Version : 1.0.0
   Updated : Thursday, December 14, 2006 ( 6:01 PM )
end script_title
-- ---------+---------+---------+---------+---------
on script_notes()
   Setting the sidebar width for finder windows is not working consistently,
   nor correctly for me. I had written several scripts to standardize the
   display of windows on screen several months ago, and they have quit working
   during the last couple of versions of the OS, not sure what has happened ?
end script_notes
-- ---------+---------+---------+---------+---------
on run
   tell me
      set this_folder to (path to current user folder)
      SetupWindow(this_folder)
      if (ChooseTest() = 1) then
         TestOne(this_folder)
      else
         TestTwo(this_folder)
      end if
      set str to ""
      set str to str & "The Sidebar Width Should be Zero" & return & return
      set str to str & "It had worked well several months ago when I was doing some "
      set str to str & "window stacking, but it seems to be broken for me..." & return & return
      set str to str & "iMacG5 running OSX 10.4.8" & return & return
      ShowMsg(str, 10)
   end tell
end run
-- ---------+---------+---------+---------+---------
on SetupWindow(whichFolder)
   tell application "Finder"
      activate
      set counter to 1
      try
         open whichFolder
         select Finder window 1
      on error
         set win to make new Finder window
      end try
      set bounds of (Finder window counter) to {20, 60, 700, 700}
      set current view of (Finder window counter) to icon view
      set toolbar visible of (Finder window counter) to true
      set sidebar width of (Finder window counter) to 300
      set w_props to get properties of Finder window 1
      set str to ""
      set str to str & "The Sidebar Width Should be 300" & return & return
      set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
      my ShowMsg(str, 0)
   end tell
end SetupWindow
-- ---------+---------+---------+---------+---------
on TestOne(whichFolder)
   tell application "Finder"
      activate
      set counter to 1
      try
         open whichFolder
         select Finder window 1
      on error
         set win to make new Finder window
      end try
      set bounds of (Finder window counter) to {20, 60, 600, 600}
      set current view of (Finder window counter) to list view
      set toolbar visible of (Finder window counter) to true
      set sidebar width of (Finder window counter) to 0
      set w_props to get properties of Finder window 1
      set str to ""
      set str to str & "The Sidebar Width Should be Zero" & return & return
      set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
      my ShowMsg(str, 0)
   end tell
end TestOne
-- ---------+---------+---------+---------+---------
on TestTwo(whichFolder)
   tell application "Finder"
      activate
      set w_props to {}
      set w_props to w_props & {sidebar width:0}
      set w_props to w_props & {current view:list view}
      set w_props to w_props & {toolbar visible:true}
      set w_props to w_props & {statusbar visible:true}
      set w_props to w_props & {bounds:{20, 60, 400, 600}}
      try
         open whichFolder
         select Finder window 1
      on error
         set win to make new Finder window
      end try
      set w_ref to Finder window 1
      set properties of w_ref to w_props
      set w_props to get properties of Finder window 1
      set str to ""
      set str to str & "The Sidebar Width Should be Zero" & return & return
      set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
      my ShowMsg(str, 0)
   end tell
end TestTwo
-- ---------+---------+---------+---------+---------
on ChooseTest()
   tell application "Finder"
      activate
      set s to ""
      set s to s & "The sidebar width is inconsistent no matter which method I use." & return & return
      set s to s & "Sometimes there is a sidebar, sometimes there is none, particularly "
      set s to s & "with a window that already exists." & return & return
      set s to s & "Method one seems to work better, but does not always hide the sidebar." & return & return
      set s to s & "Please select a choice..."
      set b1 to "TestOne"
      set b2 to "TestTwo"
      set aReturn to display dialog s buttons {b1, b2} default button {b2}
      if (button returned of aReturn = b1) then
         return 1
      else
         return 2
      end if
   end tell
end ChooseTest
-- ---------+---------+---------+---------+---------
on ShowMsg(s, howLong)
   tell application "Finder"
      activate
      if (howLong = 0) then
         set theTIme to 3
      else
         set theTIme to howLong
      end if
      set b1 to "OK"
      display dialog s buttons {b1} default button {b1} giving up after theTIme
   end tell
end ShowMsg
-- ---------+---------+---------+---------+---------

Similar Messages

  • Why can't I get any devices to show in the sidebar of a finder window?

    Until recently I had devices (hard drives, DVD's, disk images, etc show up under devices in the sidebar of a finder window. Now none of these items show up. In Finder Preferences>Sidebar>Devices I nave all 4 checked (Bob's Mac Pro, Hard disks, External disks and CDs, DVDs and iPods). I tried rebooting. I tried unchecking the 4 boxes and rechecking them to no avail. It's annoying that I have to find an icon on the desktop to open these items. Any suggestions?
    This is a Mac Pro running 10.9.5.

    Do a backup.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library. Then go to Preferences/com.apple.finder.plist and com.apple.sidebarlists.plist.  Move the .plists to your desktop.
    Re-launch Finder by restarting the computer and test. If it works okay, delete the plists from the desktop.
    If the same, return the .plists to where you got it  from, overwriting the newer one.
    Thanks to leonie for some information contained in this. 

  • Is there a folder limit in the sidebar of a finder window?

    Is there a limit to the number of folders one can put in the sidebar of a finder window? For example, I am supportng a user that currently has 47 folders in the sidebar, and would like to add more, but she can only insert them at a certain point in the list (after this point the finder will just not allow you to add anything to the sidebar). If a folder is inserted, other folders don't disappear, they just get moved down, which is why I'm thinking it's not a hard limit. The point at which the finder won't insert new items is fairly random as well, but above this point is never a problem.
    Is there a way around this? IS it a pref problem? I didn't try moving her prefs file(s) because she has an important function at my company and can't afford much downtime.
    Any help would be greatly appreciated.

    Hi jkrish,
    Based on my research, a table is limited by available client and server memory (or browser page size constraints) theoretically. If you are on a 32-bit machine, the worker process that is processing this has less than 2 gigabytes of memory to work with,
    probably closer to 1 gigabyte when you factor in kernel mode memory. If you are going to be serving up large reports like this, you probably need a 64-bit setup with at least 4 gigs of memory or more on the box. This setup will allow the worker process to
    allocate more than 2 gigs of usable memory to complete these large requests without issue.
    Furthermore, adding page breaks can improve the performance of published reports because only the items on each page have to be processed as you view the report. So in order to reduce the report process time, I suggest that you can try to add page break.
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • I recently burned a photos on a few DVDs using finder. Now I have unwanted files in the sidebar of the finder window that are unresponsive and can not be deleted. I have 3 "untitled DVD " files and 1 "spaces app"

    I recently burned  photos on a few DVDs using finder. Now I have unwanted files in the sidebar of the finder window that are unresponsive and can not be deleted. I have 3 "untitled DVD " files and 1 "spaces app" file. The unwanted files occur under "Places"
    What do i have to do to clean up my  finder sidebar?
    HJ

    Hold down the command button while dragging he items out of the finder window.

  • My ringer is no longer working for text and email notifications. Only working for phone calls. I have gone through all the settings to see where something is off. Not finding anything. I have tried changing the tone and it just vibrates on everything.

    My ringer is no longer working for text and email notifications. Only working for phone calls. I have gone through all the settings to see where something is off. Not finding anything. I have tried changing the tone and it just vibrates on everything.

    Ok so I happened to figure it out while on the phone to apple support. Even though the guy was very nice, I think I knew more than him! He was explaining very basic resolution principles I played about. I had the second option in displays resolution. All I did was unplug the HDMI cable, click on 'best for display' then plugged the HDMI in and my resolution on the normal monitor changed to the normal blue, then went black momentarily and then changed to a strange resolution but another window appeared that said SONY BRAVIA HDMI at the top! Hey presto! Don't know why it didn't do it yesterday - I probably left the HDMI cable in or something! Oh well. Problem solved!

  • Digital card reader no longer works for Windows 7 Pc, 3yrs old

    Help, my digital card reader no longer works for Windows, 32bytes, on my 3 year old pc.  HP does not have any any down loads for this.  Any suggestions where else I can find them that would not interferre with other functions of my pc

    Hi,
    What is your machine ? The following devices may help:
       http://www.ebay.com.au/bhp/usb-card-reader
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • TS1814 I have windows vista and this did not work for my ipod it still will not update PLEASE HELP!

    I have windows vista and this did not work for my ipod it still will not update PLEASE HELP!
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server

    Try this:
    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 n above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • After upgrading to Windows 8.1 iCloud no longer works on my PC

    After upgrading to Windows 8.1 iCloud no longer works on my PC

    I have the same problem - my data had better not be gone!  Why won't Apple address this problem?

  • RoboForm Lite no longer works for Firefox 17 windows 7 and server 2008r2

    Greetings,
    RoboForm Lite no longer works for Firefox 17 windows 7 and server 2008r2 I tried to reinstall but none of the tabs function . Thank you for your assistance

    '''roboform_firefox:'''
    The original poster (OP) reported his/her OS as Windows 7 in the body of the question, therefore, your solution would be of no use to the OP. You can also see the OS for the system used by the OP to post the question to the right of the original question in this forum .
    Additionally, using an old version of Firefox is ill-advised as old versions contain uncorrected security vulnerabilities. Roboform has been very good lately in keeping their products updated for new Firefox releases and any problems with their products should be reported to them so that they can address any issues and release an update if needed.

  • HT5390 mac os x is there a maximum on connected servers in the sidebar of the Finder window?

    Hello,
    I have a server with four partitions connected to my mac. At startup they
    automatically connect, and show up in the sidebar. Or... that's how it was for years.
    The new Mountain Lion sidebar shows only two of them, and it is impossible to
    put the others in the sidebar. It refuses to add them.
    Is there a limit of servers(partitions) that may be added to the left sidebar of the finder?
    ps. Maybe i am the only one that has this issue.
    I look for a .plist preference file to delete, but i don't know which one.
    Thanks
    Hans

    Hello Hans,
    Normally in Client OSX the limit is 10.
    Mount that Share once, then once the Globe Icon shows up on the Desktop, drag that Globe Icon to the right side of the Dock between Applications & Trash. You now have a Dynamic Mount, a quick click on the Icon in the Dock will connect you.
    On the multiple Shortcuts...
    Mount them all, when show up on the Desktop, then create a new Folder maybe named Shares on/in the Desktop, drag all those Shares shown on the Desktop to that Folder, (you can even rename them once there, if you wish), drag that Folder to the right side of the Dock between Applications & Trash, this should give you a popup menu to select from.:-)
    To automount them, drag those Aliases to the Accounts Pref Pane's Login Items Window.

  • Windows 7 Network Drivers No Longer Works

    Bought a MBP a week ago, just installed Windows 7 on its own partition, installed bootcamp, everything worked fine for the first day. The next day, it did not recognize my network drivers (wireless, ethernet). Control Panel states that they are not installed correctly with an exclamation mark. I've tried installing the drivers from Windows, it 'could no find file'. I've tried reinstalling the drivers using MBP BC CD, after its finished, it reboots, and windows tries to install the remaining drivers. A windows popup keeps stating that 'driver was not installed correctly' and the BC CD does not resolve the issue. I've tried uninstalling the drivers and then manually installing as well as rebooting and allowing windows to reinstall the drivers. Nothing has worked.
    So that leaves me with this conclusion, the drivers are now missing from the Windows partition as they can not be found and the drivers on the MBP BC CD will not install successfully for some strange reason. It kind of makes it hard to do anything at this point.
    Before this happened, I did encounter a BSOD, but did not give me much information on why (there was a hex error code though). It's a bit frustrating not being able to install the drivers from disk, even manually. Not sure why it won't install successfully, shouldn't be a hardware issue since it works fine on OS X 10.6.
    Any thoughts, help or opinions would be much appreciated.

    Here are things I tried....which I accumulated from multiple forums....and, unfortunately none worked for me, but might work for you:
    http://discussions.apple.com/message.jspa?messageID=11518129#11518129
    What did work for me: deleting the driver. reinstalling it. rebooting my router about 5-7 times, and they finally connected.
    probably just dumb luck.

  • I have the new Air Port Extreeme model A1521 and I need to set up port forwarding for HTTP. HTTP is not on the list in the set up. Does anyone know if any of those choices work for HTTP?

    I am on a Windows 7 Ultimate PC and right now there is no Airport utility for setting up the new Apple Extreme so you have to do it on your iPad or iPhone. Does anyone know how to set up port forwarding for HTTP to get to DVR security cameras? There is nothing in the list that indicates HTTP port forwarding.

    Thanks for your reply Tesserax as I did figure this out on my own. It took a bit because all of the options are not clear what they are for like the previous Airport Extreme and Apple does not support or guarantee that port forwarding will work for you application nor did any of the Apple support persons I spoke too have any knowledge for this feature. You also have to fill in the public if you are viewing through someone else's Wi-Fi or on your cell phone carrier network. This new Airport Extreme is a bit different since you cannot use the Airport utility on a PC like the older model and if anyone else is reading this they should be aware that if you do not have an Apple computer, iPhone or iPad and I'm not sure if some of the other network enabled devices like iPod Touch that you must use that can do it, there is no Airport utility for the PC and you would be wasting your money or have to take it back and get another brand wireless router to use if you do not own any of the above mentioned Apple products.

  • Find Criteria is CS5 is not longer working.

    RE: CS5
    Operating System: OS X 10.9.4
    I recently tried to use my Adobe Bridge 'Find Criteria' and it is not locating any files that have been tagged with keywords.  The keywords assigned to the files are still there when I click on the file.  However, when I do a FIND>Criteria>Results Match: If all criteria are met OR If any criteria are met - nothing works.  'NO ITEMS TO DISPLAY' comes up.
    Note - If I go into a file folder after and open all subfolders associated with the main folder and then I do a FIND>Criteria it then locates those items that I opened each file individually.  These files will then be located in any search BUT not unless I go manually and open all files related.
    Also, none of the Smart Collections worked either.  So I deleted them.  This was before I realized I had a much bigger problem.
    FIND does not seem to locate anything unless, I physically go into all my files and open each one.  This would be extremely time consuming and not a solution.  Somehow something is disabling or something else? I can't seem to find any solution.
    I've also gone into Cache and emptied anything related.
    Thanks for any help you can provide.

    Finally found the problem and it's probably more simple than i previously thought. Although resetting the SMC, cold start and etc is probybly not such a bad idea any on an older machine to clean away the dust! it doesn't actually solve the problem we're discussing.You need to check which programs could be using, blocking or have changed isight priorities. After checking all programs i've installed since i can last remember using my camera I found i'd overlooked Airparrot. I'm afraid that if you install Airparrot then you'll likely lose iSight functions. Airparrot blocks video functions. Great eh.You need to completely uninstall it, drivers and all. Simply using the Airparrot uninstall tool didn't do the job for me. Airparrot's uninstall tool has a delete drivers button but it didn't work. I needed to use Terminal to delete the drivers.
    If you havn't used the Terminal before then maybe you should read up first but you'll need to set a password to use the sudo actions. If you don't have one you can set a temporary one and set it back to blank again if you're not into using passwords for home use. Here are a couple of links that will explain everything:
    http://support.airsquirrels.com/article.php?id=8
    http://www.youtube.com/watch?v=r4D3eFf3y64
    Good luck. It worked for me!

  • Windows 10 and Skype - doesn't work for me

    Had perfectly settled, working Skype on Windows 8.1 (Pro) config Upgrade to Win 10 (release). Skype client won't log in any more.> It's not account details - I can log in on the WEB on the same machine.> Completely un-installed Skype following help instructions. Re-install. Client fires up, accepts username/pwd, but won't log in - spinning circle.> other apps needing internet are working fine (Edge browser, Chrome). I can't find any tools to help me diagnose what's going on. Really important app for me - help welcome!

    I tried the app data, rename old file.  At first it looked like it worked, but then right back to spinning balls.  But almost as important it WOULD NOT let me sign in with my Skype ID.  It would only let me sign in and then create a new ID associated with my Microsoft (old hotmail) e-mail.  Obviously that is not what I want. So hopefully it works for you, but deleteing the %appdata% user file clearly isn't fixing the root issue. I have checked my firewall and Skype is allowed.  Same Bitdefender settings that used to work.  Also, in re-starting it several times, Skype now wants two factor authentication everytime I sign in!!!!  Obviously, that is a huge time waster. Spent hours searching the interwebs as we use Skype for business communications.  What I have found is it is clearly the early August update to Windows 8 and 10 that broke it.  There are no for sure fixes that I have found.  Mostly check your firewall and then the rename your user data file as above, and few or no reported cases of sucess.  Hope someone takes this seriously at Skype, we are down on a critical business use for Skype for a few weeks, starting to feel been sold a bill of goods. 

  • Windows messenger 8.01 no longer works following recent mountain lion update

    Windows messenger v8.01 no longer lets you sign in since a recent mountain lion update.  Anyone have a fix, an alternative or a thorught?  I did try uninstalling and reinstalling as well as looking for updates or threads on this.

    Hi there.
    Sorry about my late reply but my issue was solved unexpectedly... I plugged in again the headphones and I forgot to plug them out for 20-30 min... Then when I unplugged them the problem was solved!!!! Therefor I didn't have the chance to try your solution but I'll keep it in mind for next time.
    (However I was also experiencing some other issues as well after the upgrade so I erased everything and installed from scratch. Hope it never happens again.)

Maybe you are looking for