Items of alias - On Open?

It's pretty blatant below what I'd like to do. I wrote two different examples, where the 2nd one accomplishes the task. I just don't know how to get it to do the same using on open?? I'd like to drop a folder filled with contents onto the droplet. Then scan that folder and set a variable to the list of items.  I've never used on open and I find very little on the subject online. I tried multiple ways of writing it and haven't hit the jackpot yet. Thank you in advance!
on open ItemList -- items were dropped onto the application
  ShowChoices(ItemList) -- do something with them
end open
to ShowChoices(TheChoices) -- show what was dropped
          set listing to every item of TheChoices
end ShowChoices
--ItemList below matches what ItemList is above
tell application "Finder"
          set ItemList to folder "Screenshots" of desktop as alias
          set listing to every item of ItemList
end tell
--difference is the 2nd example lists the items inside the folder

No, you can arrange your existing handlers to process items from either, for example:
on run -- the application was double-clicked
  open (choose file with multiple selections allowed)
end run
on open theItems -- items were dropped onto the application
  repeat with anItem in theItems
    process(anItem)
  end repeat
end open
on process(theItem)
  # do whatever with theItem
end process

Similar Messages

  • Dock folder alias's & "Open in Finder" open address book app

    Hello all,
    My Issue:
    It would appear that any "alias" and "Open in Finder" calls to open a "folder",  have instead been redirected to open "Addressbook.app".
    When did it start?
    After trying to figure out how to import my iPhone contacts into the "Address Book" on my "MacBook Pro". DETAILS:  iTunes and multiple 3rd party apps cannot see the "contact group" on my iPhone (that contains my 250 contacts). Many hours of experimentation/troubleshooting of the iPhone address book issue, appears to have inadvertently caused the current issue.
    The Details:
    1)  With any folders( Documents, Downloads or any others ) placed on the dock:  If I select "Open in Finder" the "AddressBook" app is launched & displays a Dialog box with this message: "No cards added.  No importable cards were found.". 
    2) Any "folder" alias created and placed on the Dock does the same thing( as item 1 above ): When the alias is clicked, the "AddressBook" app is launched & displays a Dialog box with this message: "No cards added.  No importable cards were found.".  
    My Troubleshooting:
    1) If I move the AddressBook app from the  "Applications" folder to the "Desktop" folder then the following system dialog box message is displayed:
    "You are opening the application 'AddressBook.app' for the first time. Are you sure you want to open this application?". It also notes that "Addressbook.app" is now located in the "Desktop" folder and, if I then choose "OK", (there after) the same issue as previously described in items 1 and 2 above occurs.
    2) Same exact problem( with a different app ) is described in this post but, nothing here fixed my issue :  https://discussions.apple.com/thread/1746309?start=15&tstart=0
    There's probably any easy fix to this that I've overlooked( seems related to "system file associations", etc) but, I'm hoping the forum members will set me straight quicker then I can stumble on the solution.
    Thanks in advance to any respondants.

    Yep, I completed all the recommendations in the post I referenced. Getting Baltwo involved is a good suggestion. I rarely post so, not sure how to do that.
    I'll research and dig around the system files some more. It must be buried in there somewhere. It seems obvious that a Dock or related system setting  ( that should point to Finder when opening a Folder )  has been changed to point to the Addressbook app instead.  It's like a bad alias( or Windows short-cut ) pointing to the wrong thing, except it's a system setting problem ( with regards to it being a normal function of the Dock and not something a user creates, like an alias ).
    One important clue:  If I put Addressbook.app in the trash, everything works fine.  Maybe I'll leave it in the trash and try to reinstall it from the Snow Leopard CD. 
    I checked out your iPhone link for the other issue that lead to all this.  Unfortunately, I already went through that scenario with no success in getting my 250 contatcts into my Macbook Pro address book. The gist of that issue is all my iPhone contacts are in a group that iTunes(etc) can't see. One thing I did was recreate my contatcts group in Addressbook.app so it showed up in iTunes sync settings. Checked it, synced my phone and still didn't work. Did a bunch of other stuff too, also to no avail.
    Thanks for your efforts Bruce, I appreciate it.

  • Customer/Vendor A/C with line item details and with opening and closing Bal

    Dear Sir / Madam,
    Is it possible to have a customer and / or vendor Sub-Ledger account-
    with line item details and with opening and closing balance detail
    for a particular period.?
    Regards
    Chirag Shah
    I thank for the given below thread which has solved the same problem for G/L Account
    Re: Report to get the ledger printout with opening balances

    Hello Srinujalleda,
    Thanks for your precious time.
    I tried the referred T-Code
    But this report is not showing Opening balance, closing balance detail.
    It only gives transactions during the specified posting period and total of it.
    Please guide me further in case if I need to give proper input at selection screen or elsewhere.
    Client Requires Report in a fashion
    Opening Balance as on Date
    + / -  Transactions during the period
    = Closing Balance as on date
    As that of appearing for G/L Account by S_ALR_87012311
    Thanks once again & Regards
    Chirag Shah

  • Need sql query to find out same item is used in open po and closed po

    Hi Experts,
    I have an requirement is that, i need to find out the item is used in open po and closed po.
      example: A is the item is used in closed PO and Open PO.
      i need to write down the scripts how many same items is used in open po and closed po.
    if any sql script is there please share.
    Please let us know if any concerns.
    Thanks
    bmn

    Hi
    Please try below query
    select
    distinct c.segment1
    from
    po_lines_all a,
    po_line_locations_all b,
    mtl_system_items_b c
    where
    a.po_line_id= b.po_line_id
    and a.item_id=c.inventory_item_id
    and b.closed_code='OPEN'
    and a.item_id in ( select 
    item_id
    from
    po_lines_all d,
    po_line_locations_all e,
    mtl_system_items_b f
    where
    d.po_line_id= e.po_line_id
    and d.item_id=f.inventory_item_id
    and e.closed_code in ('CLOSED','FINALLY CLOSED','CLOSED FOR INVOICE','CLOSED FOR RECEIVING'));

  • Reassignment of commitment items & fund centers in open PR, PO & MIGO docs

    Hi
    We  are using Fund Management (BCS) in our system since last one year. Now starting from next fiscal year ( 01.04.2009) we want to replace some of the existing fund centers and commitment items with either newly created fund centers & commitment items or existing ones. We will be changing FM derivation strategy too.
    How should one go about it? Whats should be the strategy and procedure for replacing the commitment items & fund centers in open PR, POs & other open document. I know there is option of  reassignment of fund centers and commitment items using reassignment derivation strategy. But I am not clear about the steps involved and strategy one should use while doing so.
    Pawan

    Hello Pawan,
    You can also combine reassignment with closing operations (Carryforward with reassignment)
    Pls check the link, under 'Closing Operations -> Derivation Strategy for Reassignments with Closing Operations'
    By doing so, you can carry forward for example open PO's assigned to given account assingment in 2008 to a new account assignment in 2009
    Reassignment programs RFFMCHAN and RFFMCHAT are normally used when Wrongly assigned documents or changes in the responsibility areas of the functional assignment necessitate account assignment changes within the year, or when PSM-FM is implemented later than other components.
    I hope this will help
    Kind regards
    Mar

  • Cleared items still shows as open items in transaction FBL3N

    Dear All,
    We have an issue with respect to cleared items still shows as open items in transaction FBL3N.
    Few documents has been posted and cleared, but still those line items still shows as open items.  We had this problem only for few line items. 
    For other line items this clearing process is working properly without any issue.
    Issue:
    1. Documnet has been posted on 15.08.2209 and the same document has been cleared on 12.03.2010, but this document still shows as open item only....
    Looking forward your  response / suggestions to resolve this issue.
    Thanks in advance
    Regards,
    Prasad

    Hi Prasad,
    You have the following ways to find out the reason:-
    1. Check your selection criteria in FBL3N, if you are selecting open items as on 15.08.2009, then they will still show open items..
    2. Check in table BSIS and BSAS and check where the documents are appearing.If they are cleared, they all should be appearing in BSAS.
    This is standard SAP and most probably it has got to do with dates...
    Regards,
    SAPFICO

  • FBL3N - line item visible both as open item and as cleared item

    Hello,
    Please can you tell me possible reasons for which I see the same line item in FBL3N as an open item when I check "open items" and as cleared when I check for "cleared items".
    Thank you !
    Daniel N.

    There is a small correction:
    It is not partial it is residual.
    In case of partial your original document will be intact - Open items will show debit, credit and the balance.
    In case of residual, your original amount will be deducted and a new entry gets posted as if there is a new transaction. For example from 100 USD if 40 USD has been cleared, then two line items will be shown in 40 as cleared items and a new line 60 will be generated in open items 60. But, this 60 will have different document number.
    I think there is some issue the way in which selection criteria has been selected.
    Please do not see the open items at a key date. Because that date it might be open item, later at a stage it might have become a cleared item.
    Do not restrict any dates and see the total items (cleared items and open items) and let me know if the same document is showing as cleared as well as open. This is more unlikely and I have not seen.
    Regards,
    Ravi

  • VCleared Item also come under Open items list

    Hi Exports
      In Vendor Account,after Clearing the transaction with F-43,When displays the balances in vendor account it is not shows as a cleared item but showing as open item with red mark but the account balance is  showing correct,only cleared item is not coming in green color what is the solution for this  ?
    Edited by: G SUnil on Nov 17, 2011 5:57 PM

    Sorry that is F-53
    That Outgoing payment clearing F-53, And i saved that Document also but account balance is showing correct and cleared items is not coming is green Mark please give me suggestion to me ?
    Edited by: G SUnil on Nov 18, 2011 6:20 AM

  • Reset & reverse document with open item managed and none open item managed

    Dear forum,
    I would like to confirm the below.
    If i have a posted document where the double entry has open item managed account and none open item managed account and where the open item managed account is cleared, how can i reverse this document.
    The problem now is FBRA cannot reset and reverse (as the document partly has none open item managed account) and FB08 also cannot reverse (as part of the account is open item managed account and it is cleared).
    Besides manually reverse via FB01, any other method?
    Thanks
    Moderator: Please, avoid asking basic questions

    Which document are you trying to clear using FBRA?  You should reset the "clearing document" using FBRA; not the original document that has one open item and one non-open item.  Once you reset the clearing document using FBRA, you should then be able to reverse the original document (the one that has one open item and one non-open item) using FB08.

  • Why are the first items to be played opening at the end?

    This problem occurs on podcasts, videos, and songs: when an item is played, it opens at the end rather than the beginning, so the next item in the list plays instead. Sometimes if I click on the item again, it starts from the beginning, but equally as often, it skips to the next item repeatedly.
    Is anybody else seeing this issue?

    This is normal for Creative's headphones. It's so that you don't have the wire dangling down the front of you, more just to the side of you. Personally, I don't really care much for them which is why I've replaced mine. But to each their own.

  • Why do office applications autostart when they are disabled in login items and individually in 'open at login' in dock?

    When I start the Mac word, excel, powerpoint and skype all autostart. I already tried some of the posted solutions to this like changing the system preferences (login items) and disabling the 'open at login' for each application on the dock, but it doesn't seem to work. What am I missing? 

    One of the features of Mac OS X Lion (the system you are running) is that it restarts all applications that were running the last time you were logged in.
    So, if you are now running e.g. Word, Mail, Skype, then they will all automatically relaunch upon your next login.
    When you logout/shut down/restart, you get a dialog asking whether you are sure to logout. In that dialog there is a checkmark that indicates whether all running apllications have to be relaunched upon your next login. If you deselect the checkmark, your running applications won't automatically relaunch on your next login.

  • I can only open a new tab by right clicking on an item in an already open tab and selecting open in new tab

    I can only open a new tab by right clicking on an item in an already open tab and selecting open in new tab. Nothing else works e.g. File, New Tab, or clicking on the New Tab to the right of the last tab.

    Uninstall the '''''Ask Toolbar'''''. It can cause that problem.
    *http://support.mozilla.org/en-US/kb/Uninstalling+add-ons
    *http://support.mozilla.org/en-US/kb/Cannot%20uninstall%20an%20add-on
    *http://kb.mozillazine.org/Uninstalling_toolbars
    If that does not solve the problem:
    *See --> [http://support.mozilla.org/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    *See --> [http://support.mozilla.org/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    *See --> [http://support.mozilla.org/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.org/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.org/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.org/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Login Items deleted and still opening at startup

    I deleted every login Item.
    I have five programs opening at startup. Mail, Safari, Dictionary, Word for Mac and Online Bible.
    I deleted them from SysPrefs/accounts/login Items.
    They still open at startup.
    I am trying to switch from FireFox to Safari. If I have FireFox on the computer, even five folders down it opens at startup—all the programs do.
    Any suggestions?
    Blessings

    lightwait,
    Welcome to Apple Discussions.
    There is one more place that you could look for these items.
    Look in the Macintosh HD/Library/StartupItems folder for any sign of those applications. What do you find there?
    You mentioned that you placed Firefox 5 folders deep. This is not generally a good idea, especially with Apple Applications. Have you buried any other applications or utilities?
    ;~)

  • Cleared item swowing as a Open item

    Hi All,
    I posted a document in f-02 for bank charges the entry was bank charges a/c debit and bank a/c is credit. and i posted the same data into ff67. and for reconsilation i upload the same data into FEBA for bank statement. now this document is cleared.
    but the problem is when i see this document in FBL3N this document numbe showing in Open items but i cleared allready.
    Please give me the solution for this.

    Hi....
    Those are items we cannot delete first we have to reverse those items using the FB08 for open items ..other wise use T.code FBRA for clearing items
    once done the all activites after that you have dleted the statment number number useing program Goto SE38 and execute the following report: RFEBKA96.
    On application put 0001. Here you will find all the statements. Mark the ones you want to delete... and press Delete Statements. This will permanently delete the load from your system.
    HINT: to search the statement you want to delete (Short Key), query it using table FEBKO.
    After delete the Bank Statement, the following steps can be solved. Please try:
    T.Code: FEBP
    The following parameters to be entered:
    Statement date: The same statement date
    Statement number: The same statement number
    Select u201CPost immed.u201D Select
    Execute
    Note:
    Please note that statement date is very important and same to be entered to process all the data for posting.
    Finally check the statement file debit and credit balance it must be Zero
    Than try to post once again ..it will allows you post
    I hope it will helps you
    Regards
    vamsi

  • How to clear customer open items by another  customer open item

    Hi Guru's
    I have a problem, we need to assign  and clear the open items of one customer with another customer from same company code. is it possible?
    for eg: I have a customer X whose Debit balance is USD1000 and Cusomer Y is having Credit balance is 1000. Customer Y is agreed to settle the amount to customer X.
    since customers are not related , we dont maintain any relationship in SAP. how do we post and clear the open items?
    please let me know the procedure.
    regs
    kumar

    Hi,
    When the moment you finish choose open item for 1st customer and then you have to press F7 (Charge off diff.) new screen comes then press F6 (Choose Open Items), then enter required data for 2nd customer (such as customer code, doc number, etc). You can post partially, and residually for this clearing posting.
    Good luck.
    -dwih-

Maybe you are looking for