Finder double standard

Have not been able to figure this one out, and it seems pretty bizarre.
I begin with NO windows open on the desktop. My script begins with:
tell application "Finder"
open folder (path to applications folder as Unicode text)
set WinID_ to item 1 of every window
--(and so on, including end tell)
The Applications folder opens BUT WinID_ is for the first item in the Applications folder, +even though there's no window open which is associated with that item.+
What I want, of course, is the window id for the Applications window. I appreciate that focus has changed to the Applications window, and that it's a Finder window -- but I can't fathom that its
first item (without a window open) is being treated as a window.
Thoughts?

Actually, neither response exactly answered the question. I guess I answered it myself after mulling over the responses.
Essentially, I think AS found my code ambiguous, uncertain whether I meant first item of every window or first item of (every window).
One solution is to use the more conventional code (item 1 of windows of application "Finder")
Just to demonstrate the nature of the confusion, try this:
tell app "Finder"
open folder (path to applications folder as Unicode text)
set Wins_ to (every window)
end tell
-- which returns item 1 with Name = "Applications"
as opposed to
tell app "Finder"
open folder (path to applications folder as Unicode text)
set Wins_ to item 1 of (every window)
-- or set Wins_ to (item 1 of every window)
end tell
-- which returns information about item 1 in the applications folder
OR try
tell application "Finder"
open folder (path to applications folder as Unicode text)
set Wins_ to every window
set WinID_ to item 1 of every window -- or (every window)
vs.
tell application "Finder"
open folder (path to applications folder as Unicode text)
set Wins_ to every window -- or (every window)
set WinID_ to item 1 of Wins_

Similar Messages

  • How do I correct the error: adobe acrobat 9 distiller can not find its standard icc profiles.

    How do I correct the error: Adobe Acrobat 9 distiller can not find its standard ICC profiles. Please reinstall adobe acrobat to correct this problem?
    I have tried all the suggestion in the forums. But I keep getting the error. I reinstalled AA9 Pro and downloaded the updates. But I keep getting the error.
    I recently upgraded to Windows 7.

    You have permissions issues on the respective folders, e.g. Windows\System32\Color and so on. Fix them and allow all apps to access the contents.
    Mylenium

  • Cannot  see/find the  standard IDOC/BAPI in imported Business system

    Dear Friends ,
    We have installed the PI 7.1 and registered the CRM 7.0 via RZ70 in SLD of PI as techincal system and created the business system as well . Then i have mapped to the corresponding product and SWCV.
    But when i import the business system in ID , i couldn't find the standard(pre-delivered) sender and receiver  interfaces ( like IDOC etc., ) .
    Please provide your valuable inputs .

    Rangarajan,
    Have you added the correct SWCV to the BS and TS?
    i think you have not linked the TS and the Product correctly .
    Create  a Product->for this product create a SWCV->go to technical system reference the
    created product there->Go to BS and check select the TS created earlier.
    after doing above step , refresh sld cache and check again.
    Please refer this wiki post :
    http://wiki.sdn.sap.com/wiki/display/XI/WorkingwithSystemLandscapeDirectory+(SLD)
    Regards,
    Srinivas

  • How to find the Standard Program associated with a Standard IDOC

    Hi,
          I am going work on enhancing the standard IDOC. Any body can suggest how to find a standard pogram associated with a Standard IDOC. And can any body send some exaple code for extending a standard IDOC and to implement the logic in the standard program .....

    Hi,
    For outbound IDoc the program can be found:
    1) For master IDoc via transaction BD60. Here for the message type you can find the function module used to generate the IDoc. Within this function module you can find the user exit where you can code your logic.
    2) For IDocs with message control (output control) we maintain settings for proces code in WE41. This process code will lead to outbound IDoc generation program.
    For Inbound IDoc the program can be found:
    Via WE42 where inbound process and its related inbound function module is maintained.
    In each cases above we can go the function module and find the customer exit where idoc enhancement logic can be coded.
    For extending IDoc look at the following links:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/content.htm">Extending IDoc - SAP help</a>
    It can be summarized as follows:
    Enter transaction WE30 (ALE->Extension-> IDOC types->Maintain Idoc type)
    - Type in your name of the extended IDOC type (usually starting with 'Z') and click on the Basic IDoc type, click the create icon.
    - Click on Create new and enter a description and press enter.
    - Click on ZIDOCTYPE01 and then on the Create icon.
    - Enter ZIDOCTYPE as the segment type, click on Segment Editor.
    - Enter a description for your segment type and create.
    - Enter a description for your segment, enter each field required in your IDoc and press enter to validate.
    - Save and generate, press back
    - To release the segment choose Goto, Release from the menu.
    - Check the box on the line of your segment.
    - Save, back and enter.
    - Your Idoc type structure should be displayed with your new segment.
    - Save and back.
    - To release the Idoc type choose Extras, Release type from the menu and Yes.
    Hope this helps.
    Regards,
    Gajendra.

  • How to find the Standard DFF Name  In oracle apps

    hi,
    How to find the Standard DFF Name In oracle apps
    thanks

    1. Open the form
    2. Choose Tools--> Diagnostics
    3. In the block field choose $DESCRIPTIVE_FLEXFIELD$
    4. Field will show the list of all the DFF's enabled for that form.
    5. Choosing one will display the name of the DFF in the value field.
    Thanks
    Nagamohan

  • Is there a way to find doubles in iPhoto

    Is there a way to find doubles in iPhoto ?
    Very hard to manage all the photos. Many times there is the same photo, and it takes disk space for nothing.
    George

    There are two apps, actually one app and one Applescript script, for finding and removing duplicate photos from iPhoto. They are:
    Duplicate Annihilator
    iPhoto AppleScript to Remove Duplicates - free
    The script only identifies the duplicates and leaves deleteing them up to you.  Duplicate Annihilator will identify and move the dulicates to the Trash for you.  It'll still be up to you to empty the trash bin.
    OT

  • Grep to find double dot

    Hi,
    Any one can help me to find double dot in a indesign document.
    It should not catch triple dot(...) and six dots(......) match

    Here's a screen shot:
    I colored single dots blue, and the single-character ellipsis red. I've placed them in several combinations. When I run the GREP, here's what it finds:
    As you can see, it only found the single dots, and not the ellipses. Are you saying that you have actual ellipses and single dots, but it isn't finding the single dots when they are after an ellipsis?

  • How to find the standard Layout(Forms) list in India Baseline version

    Hi,
         Can anyone suggest me how to find the standard layout(forms) in the India baseline version.
    i want total standard form(Scripts/Smartforms) name available in India baseline.
    Thanks in Advance!!

    Hello,
    Goto Se710> Do F4 in form.  In next screen goto Find->Technical Search function and execute it.  It will show no. of forms in the status bar at the bottom.
    Cheers,
    Balaji

  • Can't find the standard infoobject/infocube in BW system

    I have studied BI for only 2 months. When I try to extract data from R/3 system, I find that I can't find the standard Infoobject/infocube such as 0plant, 0purchaseorganize both in RSA5 and RSA6. Our basis team advice me to install a patch for my SAP gui. So could anybody tell me which patch should I install
    Best regards
    Edited by: Yang12 on Sep 16, 2009 4:04 PM

    Hi expert,
    I also has met this kind of issue , i can't found out infoobject( 0CO_AREA,0BUS_AREA,0RESP_PERS...) in BW(ECC6),
    And i have perform the steps base on your instruction,but still can't found 0PLANT(i have not install datasource),
    Please help me;
    By the way,
    Do we need install datasource at frist,then go to RSA1-> click on BI Contenct button on left -> click ........
    If yes,how does i know which datasource need be install;
    for installing 0PLANT - go to RSA1-> click on BI Contenct button on left -> click on object types -> Expand infoobject -> click on select objecst and clifk on find and type 0PLANT and click on transfer selections
    Edited by: 350761380 on Sep 16, 2009 4:50 PM

  • GetHashCode to find Doubles; Can you do it better?

    Hi guys!
    Last month i post a code of mine(The Full Code is here:
    http://social.technet.microsoft.com/Forums/it-IT/7acea85b-1d48-4b14-bd97-45c0603c8d64/powershell-basta-usare-un-po-di-logica-xd?forum=benvenutiofftopicit#365d668d-9ea6-4f72-8360-11ec7602f5b0)
    The goal of this code is find Doubles but it use MD5 Hash:
    $md5Hash = [System.Security.Cryptography.MD5]::Create()
    $hashBytes = $md5Hash.ComputeHash($bytes)
    but it takes a lot of time...
    How can i search double faster?
    Thanks
    A

    OMG!
    i understand now what you mean!
    $childFiles have only one element...
    I know that
    $childDirs=$sourceDir.GetDirectories('*',[System.IO.SearchOption]::AllDirectories)
    give me all directories like Dir $source -recurse
    How can i obtain all the files? $sourceDir.getfiles('*',[System.IO.SearchOption]::AllFiles
    or maybe $sourceDir.GetFileSystemInfos() ???
    Thanks!!!

  • Find doubles function does not work in address book

    I had about 40 doubles in address book.
    I choose the function 'find doubles'
    It didn't find the doubles so I had to remove them manually.
    Has this happened to you?

    Try the steps I posted here: https://discussions.apple.com/thread/3222240

  • Where can we find the standard program for scripts and smartform for vl02

    where can we find the standard program for scripts and smartform for vl02
    regard,
    anil

    If it is a standard Script Output see that all config in NACE tcode was done correctly and in the Application document the output type was properly defined and attached to a medium, partner and all communication related things like printer name, when to print the output and number of messages etc are entered in the document
    the go to the related application Tcode
    (for sales order goto VA02 or VA03)
    (delivery -VL02N or VL03N)
    for Invoice VF02 or VF03
    for PO -goto ME9F
    enter doc number, Issue Output to -> screen/printer
    then see the output
    step 1 : copy the z layout into testing client thru SCC1.
    step2 : go to se71 and check modified layout.
    step3 : if it is under logistics.. go to TCODE "NACE".
    u will see various applictions for each business process.
    there u have configure ur related layout according to requirments,
    for example u consider for Request fo Quatation..
    there is APPLICATION called "EA"
    click and enter into it. configure it with ur requirments, for help consult with ur functonal consaltant, and save it.
    step 4 : goto tcode ME9A for requst for quatation(RFQ).
    step 5 : enter test data avalable and check it with message display.
    it is same for other applications like Contract agreament --> ME9k
    invoice --> vl02n
    and goes on..
    Reward points for useful Answers

  • Regular Expression - find double hyphens only

    I am wondering if there's a way to write a regular expression to find double hyphens and change them to single hyphens.  The catch is that some of the text I'm searching through have multiple hyphens.
    Example:
    str1 = "Here is my sample text with double -- and I would like to replace this with one hyphen."
    str2 = "Here is another sample with multiple hyphens ----- that I do not want to change but leave as is."
    Is there a way to change only str1 to a single hyphen and keep str2 as is?

    You are correct.  I should have been more explict.  Here are some real examples.  I hope this helps.
    Helps what?
    Have you tried to write the regex yourself, at least?
    Adam

  • How can I find double photos in iPhoto'11?

    Hey, how can I find double photos in iPhoto'11? Only know that it displays doublets when I use the import function in iPhoto'11.
    Thanks
    Matthias

    Thanks for the answer.  After I posted this question, I saw there were other discussions.  I do see everything is there, but it is time comsuming to view each individual picture to make sure I put it in the right catagory!!
    I did send feedback to apple,  but I see people have been asking them to fix this problem for the last 7 months or so, and it is still not fixed.....so what is good about the new version!!? 

  • How to find the standard queries in business content

    hi
    pls explain how to find the standard queries in a business content
    assign full points

    Hi,
    Incase you want to know details about the standard queries, then the best source would be the help documenations on BI content:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/37/5fb13cd0500255e10000000a114084/frameset.htm

Maybe you are looking for

  • Please help me to solve the problem ---it's urgent

    hi everybody my application is deployed on the weblogic 9.0. I am using the VB DLL through which i am sending the request to the servlet. When i am pressing the "Color" button in VBDLL to retrieve the color information, server takes the long time nea

  • Can't print to officejet 6500 E709a from networked computer

    Today I've tried reinstalling my printer software multiple times and I still can't get the printer to print. "Print Test Page Fails." The printer itself works fine on the computer it's connected to with a USB. It works fine from my second networked c

  • ADD ATTACHMENT TO AUTO MAIL SENT DURING BIDDER CREATION

    HOW TO ADD ATTACHMENT TO AUTO MAIL SENT DURING BIDDER CREATION (CREATE CONTACT PERSON) IN SRM PORTAL..

  • SXMB_MONI opening a message is taking more time

    Dear Friends When i execute SXMB_MONI all the messages are getting listed immediately. But when we double click on any of the message, it is taking around 4 to5 minutes to open the message. Any thoughts to improve the performance Regards Madhan D

  • Convert to JPEG Command

    After a quick development I convert my 1- and 2-star photographs (i.e. the ones that are almost good for nothing, but still I can't hit the Delete button) to JPEG to save disk space. Currently I use Bridge and ACR to save to the same folder (Lightroo