Help please: Refreshing a window

Hello,
I would like to refresh a window so I have
try
tell application "Finder" to update folder "My folder" of desktop
end try
It compiles but does not work, I have to do this:
try
tell application "Finder" to close folder "My folder" of desktop
tell application "Finder" to open folder "My folder" of desktop
end try
That compiles and works, but the opening and closing of "My folder" is obvious to the user.
How could I improve that?
Thanks.
Lennox

Lennox, you could try using this free shell utility. It has worked just fine for me. Here is the link:
http://osxutils.sourceforge.net/
The man page you want is "/usr/local/bin/wsupdate" if you don't specify a file then the finder windows should be updated. Here is a example of using this shell command.
set Icon_From to choose file with prompt "Choose the file you want to copy the icon from?" without invisibles
set Icon_To to choose file with prompt "Choose the file you want to copy the icon to?" without invisibles
my ReplaceIcon(IconFrom, Icon_To)
on ReplaceIcon(FromFile, To_File)
try
do shell script "/usr/local/bin/seticon" & space & (quoted form of (POSIX path of From_File)) & space & (quoted form of (POSIX path of To_File))
try
do shell script "/usr/local/bin/wsupdate" & space & (quoted form of (POSIX path of To_File))
on error Error_Message
display dialog Error_Message giving up after 2
return false
end try
on error Error_Message
display dialog "Requires osxutils from http://osxutils.sourceforge.net/" giving up after 3
return false
end try
end Replace_Icon

Similar Messages

  • Need help with refreshing open window in new tab

    Hello all,
    First, all my other problems I've solved.  One last thing, being a newbie and trying things I've found on the net and them
    not working, I can use your help one last time.  My code has a Home page that peforms a Search (most of you have
    I am sure done this), and from that search submit a window opens in a new tab (browser tab) and has the results on
    it.
    That works fine.  What I'm having trouble with is being able to perform a new search and refreshing that open window
    with the new data.  Right now I am closing that window by clicking on the tab and then performing the search.
    While it works, it's not user friendly.
    So, I've tried the usual  mywindow=window.open("url.cfm"); and then trying to grab that handle to refresh, but to
    no avail.  Has anyone done this?
    Thanks!

    Here's an example of how you could do it.
    <script>
    function submitAndFocusTarget(form) {
      var win = window.open("", form.target);
      form.submit();
      win.focus();
    </script>
    <form action="index.cfm" target="mysearchwin" method="get" onsubmit="submitAndFocusTarget(this); return false;">
      <input type="text" name="search" value="" />
      <input type="submit" value="search" />
    </form>

  • Help please with wrangling Windows 7 fonts

    This may seem off-topic, but I'm hoping the practical expertise of posters here in working with fonts might provide some insight.  I've posted in Windows-centric forums, but most general users seem not to understand font issues, so couldn't respond.  Any help would be appreciated.
    So.  I have two questions, please:
    1)  My version of Windows 7 (Australian) comes bundled with other fonts included on a "regional" basis, including dozens of Asian languages.  Congrats to Microsoft for making these available, but they're not optional;  they're installed in the Windows\Fonts folder, and marked as system files, so if they're moved to another location (with the intention of handling them with a Font Manager and making them available on-call) the system just restores them in the folder at the next reboot.  In the meantime, they clog the installed fonts list — most of them, uselessly, for any individual user.  Is there any way of bringing these under control?
    and
    2)  My copy of Windows 7 does a kind of autofill on fonts, where missing glyphs are filled in with glyphs generated by the system, that appear in the Font Display and Font Properties windows, but also appear in my Font Manager's cascaded display.  It makes it much harder to choose fonts that have the glyphs I need, even though the match in the display is often not a very good one — it's often not hard to spot, but it makes the process of choosing much more laborious.  And strangely, it doesn't happen for every font, but I've been unable to find what determines whether the system substitutes fonts or leaves the glyph spaces blank.  And I haven't been able to find any documentation or mention of this behaviour, let alone any way to modify it or switch it off.  I'm surprised that I haven't even seen it mention in discussions.  Can anyone help with suggestions or insight on this please?  Ideally, how do I switch this off?
    Thank you for any responses.

    In terms of fonts that Windows 7 installs in its C:\Windows\Fonts directory, you delete, move, or manage those at your own risk. Some are required by Windows itself and others are assumed to be available by applications from Microsoft and others. Be careful.
    You should also be aware that many system vendors install their own “added value software” on new systems in addition to Windows itself. (Some would designate some of this dubious “added value software” as shovelware.) Such software may also install fonts. Personally, I've seen some such software add upwards of 50 to 100 mediocre typefaces to the system. All such fonts are certainly deletable assuming you either delete the shovelware, don't use it, or at least don't use the funtionality that calls upon such fonts.
    In terms of what you describe as autofill on fonts, Windows and various Windows applications do have a function by which any “missing glyphs” in a font are filled by comparable glyphs from some other system font per configuration in the Windows registry. You actually see this using the Character Map utility where it appears that all fonts have all glyphs (or at least all TrueType fonts have all glyphs).
    The good news is that within Adobe applications, such autofill as you describe it does not occur. You get the pink box. To see what glyphs are actually defined in a font, you should look at the glyphs panel for the font in question. Only the glyphs actually defined in the chosen font will appear.
              - Dov

  • HELP PLEASE - stuck in windows!

    I have a mac OS X and tried to set up boot camp today so i could also run windows on my mac. I installed windows xp sucsessfully but when i came to install service pack 2 it says there isn't enough memory to instal it. When chosing the memory at the partition set up i musn't have selected enough memory. I try to insert the mac instillation disk but it says it can't continue untill windows has been updated (which will be service pack 2) this means the option to
    choose mac has not installed and i am stuck in windows i can't find a way out. Please Help!!
    thank you

    panic over problem solved!

  • Help Please with my Windows 7 PC

    I followed all the instructions upon setting up ITunes account and cloud BUT once installed my computer no longer started up properly.  It now takes a very long time to come up.  I installed all the Apple software but that did not resolve the problem I have now.  I have spent the entire afternoon and evening trying to resolve this problem but to no avail.  Can someone help me please.  I even did a system restore to a date prior to installation, but that did not help

    Suggest you read the manual.
    Complete guide to using iOS 6
    http://howto.cnet.com/ios-6-complete-guide/
    Guide to Built-In Apps on iOS
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
    You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    http://www.youtube.com/watch?v=YT2bD0-OqBM
    http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
    http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • Dv73060us connected to t v via HDMI Audio only from PC Help, please OS is Windows 7

    I have connected my pc , using HDMI cable, to the TV, Everything seems to work well except for the fact that the audio is through the pc only. I went to control panel. hardware, sound and made the hdmi option the default.Audio still from pc only. Someone's help, please

    wcrawf,
    The brand of TV makes a difference sometmes... older Philips TVs in particular are fussy and have their own setup in the control panels (cannot recall where, this is from a thread from last ... Oct?  I think I can find it if you need the info).
    There is an "Order of Events" that needs to be followed; it is more important sometimes than others.
    If the issue is a "simple one", then this may help as a "Check List":
    Resolving HDMI Display and Sound Issues
    Reprint of an earlier post - something here may work:
    NOTE:  If this does work, the "Hard Reset" rule applies - it should "stick", that is, you shouldn't have to do it this way each time - it's just a matter of getting it set up.
    Order of Events - A "Hard Reset" of the HDMI Audio Setup:
    Enable Digital Audio (S/PDIF)
    Connect HDMI  from computer toTV’s HDMI/DVI input port
    Set your TV input to HDMI/DVI input.   (You won’t have sound yet.)
    Turn of the TV.  Shut down the computer.
    Boot the computer - wait for it to boot all the way.  Log in.
    Sound should be "dead" - no system sounds at this point. 
    All the audio should be going through the HDMI port.
    If not, and you are getting sound, try setting "Digital Audio" setting (if you have it) as an option, [quote] "although this should not be necessary."
    Remove any headphones and any other non-HDMI output from computer and Reboot.
    If you get sound, it's still not ready - play with the sound output.
    When you get it to the point where the sound is "dead" (while the HDMI port is still connected) after you reboot, you are ready.
    Turn on the TV.
    Check for Sound through the HDMI port.  Should be working.
    The FIX-ALL Link for HDMI:
    I could take credit for this - but, you know - this is just not my area of expertise...  Your solution may be here - almost everything that can happen to HDMI has happened to someone at some point.  I've used this forum before - it's a great reference.
    http://en.kioskea.net/forum/affich-79711-laptop-sound-on-tv-with-hdmi-cable
    I hope this helps.
    Kudos are Earned!
     ====================================================================================
    Kind Regards,
    Dragon-Fur

  • DEP Print Crash (Reader 9.3.2) - Help please?

    Help please anyone?
    Window DEP (Deta Execution Protection) stops me printing pdfs and the print crashes.
    If I tick/check DEP to allow me to use Reader 9 that makes NO difference even though it says if should.
    I'm using Reader 9.3.2 - not an earlier version - and the print crash happens either in Reader, using it alone, or when I open a pdf in IE or Firefox.
    I am running XP SP3, recently updated from SP2   (there maybe a connecton - was it the XP3 update which did it?)
    This is very frustrating. I don't want to abandon Adobe Reader and use a different company's  program but I have wasted hours so far tring to find a fix for this.
    Incidentally fiddling with Javascript [Reader>Edit>Preferences>Untick Enable Acrobat JavaScript] which is one recommended fix whichdoesn't work.
    Maybe there any other files I can get DEP to ignore? (NB they all have to be .exe files so be sure to tell me where to find them!)
    All advice gratefully received. I am SOooo fed up with this.
    Thanks!

    All I know is that I can't print from Adobe Reader any more but I can print pdfs since I replaced it with Foxit Reader.
    I suspect this is maybe connected with my XP upgrade from SP2 to SP3.
    I knew it might mess things up and this happened soon after. I also can't print AT ALL from Firefox now and that happened at the same time too.
    Microsoft again....? Who knows. I have solved my pdf printing problem a roundabout way, but not my Firefox problem - tho that isn't for this forum!

  • Opening hotmail: Please refresh your browser window, When you access your Windows Live Hotmail account from more than one computer, we ask you to sign in again to help keep your account private and secure . Refreshed but no change. in Safari no problem

    opening hotmail in firefox: Please refresh your browser window, When you access your Windows Live Hotmail account from more than one computer, we ask you to sign in again to help keep your account private and secure . Refreshed but no change. in Safari no problem

    Go to '''Options '''on Firefox Browser-->'''Advanced'''-->''Click on'' '''Network '''tab-->''Select '''''Settings'''-->''Select '''''Use System Proxy Settings
    '''

  • I can't open mail on Hotmail from Firefox. I can from Safari. I can open the Hotmail account page and it is complete w/ my new messages, but when I go to open them I get this messeage..."Please refresh your browser window. When you access your Windows Liv

    I can't open mail on Hotmail from Firefox. I can from Safari. I can open the Hotmail account page and it is complete w/ my new messages, but when I go to open them I get this messeage..."Please refresh your browser window. When you access your Windows Live Hotmail account from more than one computer, we ask you to sign in again to help keep your account private and secure. " when I sign in again there is no change. in English
    == URL of affected sites ==
    http://http://sn135w.snt135.mail.live.com/default.aspx?n=2087215863
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    "Clear the Cache": Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    See http://kb.mozillazine.org/Clearing_the_cache and http://kb.mozillazine.org/Cookies

  • Ok. So my iTunes started acting up a few months ago. ALL of the songs I purchased from the iTunes store stop in the middle of the song and then go back to the begining (I keep it on repeat one song by the way). Please help!!! (Windows 7)

    Ok. So my iTunes started acting up a few months ago. ALL of the songs I purchased from the iTunes store stop in the middle of the song and then go back to the begining (I keep it on repeat one song by the way). Please help!!! (Windows 7) I would really like to hear my songs all the way through, but I can't . I tried the "Convert Protected ACC files to Purchased ACC files fix" but it DIDN'T work. I don't know what to do. It does it when I transfer the music onto my Classic too.

    What do you mean "doesn't recognize"?

  • " help me please"  I have Windows 7 installed on my mac pro and Bought Mini DisplayPort to VGA Adapter to connect to lcd tv But it does not work? why? please help me

    " help me please"  I have Windows 7  32 bit installed on my mac pro and Bought Mini DisplayPort to VGA Adapter to connect to lcd tv But it does not work? why? please help me
    I have to boot with a Windows
    When I use the Mac operating system not have a problem  and DisplayPort to VGA Adapter Working properly
    why does not work with windows ?
    What should I do؟
    I'm grateful to give advice
    tanks
    [email protected]

    Someone in another section answered this. Thanks.

  • Hi all! I was updating the software on i pad to ios6, update was interrupted(apple update server is unavailable...). iTunes Diagnostics shows that "secure link to I tunes store failed". I use Windows 7 Home Premium 64 bit. Can anybody help please?

    Hi all! I was updating the software on i pad to ios6, update was interrupted(apple update server is unavailable...). iTunes Diagnostics shows that "secure link to I tunes store failed". I use Windows 7 Home Premium 64 bit. Can anybody help please?
    The following was done so far:
    1. Windows Firewall - new rule created for itunes.
    2. iTunes - latest version installed.
    3. LAN setting : automatic detection of proxy is enabled;
    4. iTunes diagnostics shows:
    Microsoft Windows 7 x64 Home Premium Edition (Build 7600)
    TOSHIBA Satellite L655
    iTunes 11.0.2.26
    QuickTime 7.7.3
    FairPlay 2.3.31
    Apple Application Support 2.3.3
    iPod Updater Library 10.0d2
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 6.1.0.13
    Apple Mobile Device Driver 1.64.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 003FB880034B7720
    Current user is not an administrator.
    The current local date and time is 2013-04-23 11:01:14.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    Video Display Information
    Intel Corporation, Intel(R) HD Graphics
    **** External Plug-ins Information ****
    No external plug-ins installed.
    iPodService 11.0.2.26 (x64) is currently running.
    iTunesHelper 11.0.2.26 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:          {1CB5BBC2-8124-4664-899A-CE0A4683E3B4}
    Description:          Realtek RTL8188CE Wireless LAN 802.11n PCI-E NIC
    IP Address:          0.0.0.0
    Subnet Mask:          0.0.0.0
    Default Gateway:          0.0.0.0
    DHCP Enabled:          Yes
    DHCP Server:
    Lease Obtained:          Thu Jan 01 08:00:00 1970
    Lease Expires:          Thu Jan 01 08:00:00 1970
    DNS Servers:
    Adapter Name:          {8140112A-43D0-41D6-8B36-BE146C811173}
    Description:          Atheros AR8152/8158 PCI-E Fast Ethernet Controller (NDIS 6.20)
    IP Address:          10.5.7.196
    Subnet Mask:          255.255.0.0
    Default Gateway:          10.5.0.1
    DHCP Enabled:          Yes
    DHCP Server:          172.18.255.2
    Lease Obtained:          Tue Apr 23 10:14:40 2013
    Lease Expires:          Tue Apr 23 22:14:40 2013
    DNS Servers:          121.97.59.7
                        121.97.59.2
                        121.97.59.3
    Active Connection:          LAN Connection
    Connected:          Yes
    Online:                    Yes
    Using Modem:          No
    Using LAN:          Yes
    Using Proxy:          No
    Firewall Information
    Windows Firewall is on.
    iTunes is NOT enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was unsuccessful.
    The network connection timed out.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was unsuccessful.
    The network connection timed out.
    Connection attempt to Gracenote server was successful.
    The network connection timed out.
    Last successful iTunes Store access was 2013-03-22 10:05:31.
    @@@. iTunes IS ENABLED THROUGH THE FIREWALL , even though diagnostics says "NOT enabled"

    hours after the first post i somehow got this to work. dont know how, but i do tried the dns clear cache, the clear host file, oh and i did the check automatically detech dns AND THEN se-check it again before i got this to work.

  • I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!

    I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!

    The pdf is loading as html code. If you save it, it will download as :
    605124.pdf.html
    Change the extension to .pdf
    And it opens and works perfectly, I just tested it:
    Use this link to download it automatically:
    http://saladeaula.estacio.br/arquivo.asp?dir=00/1020624/605124.pdf&num_seq=59828 4

  • I am running windows 7. We updated firefox and it would no longer open. I uninstalled it and reinstalled from firefox website. I click on the firefox icon and it will not open. Help please

    It installs and I attempted to launch the browser and it never starts. I tried to uninstall, but it says firefox is running. I restart my computer and uninstall and try again. It still will not open after install is complete. Why won't it ever open up? Help please!

    Right-click on your Windows Taskbar and select Start Task Manager. Look in Task Manager for processes running that are Firefox-related, such as Firefox.exe or plugin-container.exe. If you see either of those, right-click each of them and select "End process". Then try again to start Firefox in [[Safe Mode]]. <br /><br />
    *If Firefox will start in Safe Mode, select the option you are presented with to disable your add-ons and plug-ins and restart Firefox normally. You likely have a plug-in, add-on, or a combination of two or more that is causing the problem. Because Firefox allows users to customize endlessly, sometimes there can be conflicts between customized items. From the Firefox menu bar, go to<br /><br />Tools -> Add-ons<br /><br />then re-enable them one by one, restarting Firefox after each and testing after each one to see which one or combination of two or more is causing the problem. <br /><br />
    *If Firefox will not start in Safe Mode, make sure you again check Task Manager and end any running instances, then uninstall Firefox and download a fresh copy from mozilla.org/firefox using another browser temporarily. Re-install Firefox (see: [[Installing Firefox on Windows]] for more help ) and try running Firefox again.
    Please report back your progress.

  • My iPod touch is not synching to iTunes. Meaning it's not showing up in my devices when I go to them through the 'Edit' button at the top of the iTunes window. Help please!!!

    My iPod isn't synching. It's not even showing up in the Devices. I know it's ocnnected becasue it's charging. Help please! Probably an epic noob fail xD

    Try here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows
    or
    iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X

Maybe you are looking for

  • Updating to Apex 3.2 on Amazon EC2

    Hello, I am using a small Amazon Elastic Compute 2(EC2) AMI with oracle 10g XE 32-bit. The instance is allready installed but apex is 2.0.1 and i want to update it to 3.2, maybe even 4.0. The problem is that when i connect (using Putty) and i try to

  • [Solved] How did I break my mpd decoding?

    I need help.  Sometime this Saturday mpd stopped properly decoding mp3's.  I didn't change any permissions on the files, so my assumption at this point is something that I upgraded/installed/removed broke it. mpc gives an error of ERROR: problems dec

  • Very Poor Resolution in Titles

    Hello, my titles are such poor quality.  very disappointing.  Can't be described as professional in any way. My original source material in premiere pro was 24p, 1920 x 1080.  File was imported into Encore in Standard Def format, smaller and apparent

  • JavaScript Question for Novice

    I'm an Adobe novice when it comes to JavaScript. I have a form that has Date of Birth and Date Form Completed and I want to calculate Age based on those two dates. How can I do this? thanks Anthony

  • IPhone cannot be synced. A duplicate file name was specified.

    iPhone cannot be synced. A duplicate file name was specified.