Fischer-Bayern.de
 FAQFAQ   SuchenSuchen   MitgliederlisteMitgliederliste   BenutzergruppenBenutzergruppen   RegistrierenRegistrieren 
 ProfilProfil   Einloggen, um private Nachrichten zu lesenEinloggen, um private Nachrichten zu lesen   LoginLogin 

choose_index from list
Gehe zu Seite 1, 2  Weiter
 
Dieses Forum ist gesperrt, du kannst keine Beiträge editieren, schreiben oder beantworten.   Dieses Thema ist gesperrt, du kannst keine Beiträge editieren oder beantworten.    Fischer-Bayern.de Foren-Übersicht -> OS X-Snippets
Vorheriges Thema anzeigen :: Nächstes Thema anzeigen  
Autor Nachricht
Skeeve
•---->
•---->


Anmeldedatum: 20.04.2006
Beiträge: 1067

BeitragVerfasst am: 01.03.2007 - 15:41    Titel: choose_index from list Antworten mit Zitat

Update: kleiner Bugfix für den Fall, daß cancel geklickt wurde, der Cancel Button aber nicht diesen Namen trägt.

spirigwi suchte ja nach einer Möglichkeit, festzustellen, welcher Eintrag aus einer liste bei choose from list gewählt wurde.

Die Lösung, die ich geliefert hatte, war mir zu speziell. Heute brauchteich aber selbst so eine Funktion und hier stelle ich nun meine Lösung vor:
Zitat:
to choose_index from a_list given start_numbering_at:frst, title:headline, prompt:question, default:selected, ok_button_name:ok_btn, cancel_button_name:cancel_btn, multiple_selections:multi, empty_allowed:mt
   if class of frst is not integer then set frst to 1
   if class of headline is boolean then set headline to ""
   if class of ok_btn is boolean then set ok_btn to "OK"
   if class of cancel_btn is boolean then set cancel_btn to "Cancel"
   set display_list to {}
   set selected_list to {}
   set idx to frst
   repeat with element in a_list
      set displayable to (idx as string) & ")" & tab & element
      if selected contains element then copy displayable to the end of selected_list
      copy displayable to the end of display_list
      set idx to idx + 1
   end repeat
   if question is false then
      set auswahl to choose from list display_list with title headline default items selected_list OK button name ok_btn cancel button name cancel_btn multiple selections allowed multi empty selection allowed mt
   else
      set auswahl to choose from list display_list with title headline with prompt question default items selected_list OK button name ok_btn cancel button name cancel_btn multiple selections allowed multi empty selection allowed mt
   end if
   if auswahl is not false then
      repeat with i from 1 to count of auswahl
         set the_text to item i of auswahl
         set item i of auswahl to (text 1 thru (-1 + (offset of ")" in the_text)) of the_text) as integer
      end repeat
   end if
   return auswahl
end choose_index


Ein Beispielaufruf ist bereits angegeben.

Das unschöne an eigenen Handlern mit benamten Parametern ist, daß keine als Optional angegeben werden können. Deswegen entsteht dieser Wust an Parametern beim Aufruf.

Die benamten Parameter werden entweder bei with oder without angegeben und erhalten dadurch den Wert true[/] bzw. [i]false. Oder sie werden bei given angegeben und erhalten dann einen Wert, den man angeben muß. Also z.B. ... given start_numbering_at:4 with multiple_selections without empty_allowed ...

Hier eine kurze Erklärung zu jedem Parameter:
choose_index from

  • eine Liste (direkter parameter)
    Dies ist, wie beim choose from list die Liste aus der ausgewählt wird

  • start_numbering_at: integer
    wenn etwas anderes als ein Integer angegeben, beginnt der Index bei 1. Ansonsten bei der angegebenen Zahl.
  • prompt: string
    Wenn false, wird die Standard Frage angezeigt, ansonsten der übergebene Wert.
  • title: string
    Wenn false, wird "" verwendet, ansonsten der übergebene Wert.
  • ok_button_name: string
    Wenn false, wird "OK" verwendet, ansonsten der übergebene Wert.
  • cancel_button_name: string
    Wenn false, wird "Cancel" verwendet, ansonsten der übergebene Wert.
  • default: liste
    Wenn false wird kein Eintrag vorgewählt, ansonsten die angegebenen.
  • multiple_selections
    Ist eine Mehrfachauswahl erlaubt?
  • empty_allowed
    Ist eine leere Eingabe zulässig?

Das Ergebnis ist eine Liste mitden Indizes der gewählten Einträge oder false bei Abbruch.
_________________
"All problems are solved in slightly less than half an hour" (Chumbawamba, "Hey Hey We're The Junkies")
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
Skeeve
•---->
•---->


Anmeldedatum: 20.04.2006
Beiträge: 1067

BeitragVerfasst am: 09.06.2007 - 21:26    Titel: Antworten mit Zitat

Da ist wohl in irgendeiner Korrektur tatsächlich der Beispielaufruf hopps gegangen.

Aber in spiris Textwust habe ich das irgendwie nicht richtig wahrgenommen (wahrnehmen wollen) daß er mich drauf hingewiesen hat.

Hier als Entschädigung 2 Beispiele:
Zitat:
choose_index from {"zwei", "Zwei", "ZWEI"} without title, default, ok_button_name, cancel_button_name, multiple_selections and empty_allowed given start_numbering_at:1, prompt:"Welche Zwei bitte?"

choose_index from {"MCMXCIIX", "MCMXCIX", "MM", "MMI"} without multiple_selections and empty_allowed given start_numbering_at:1998, prompt:"Welches Jahr?", default:"MM", title:"Römische Jahre", ok_button_name:"Das", cancel_button_name:"Nix"

_________________
"All problems are solved in slightly less than half an hour" (Chumbawamba, "Hey Hey We're The Junkies")
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 07:54    Titel: Antworten mit Zitat

It's an easy and comprehensive solution for small businesses of every size and type, despite costing more than other tax software programs. Turbotax.ca/download Install Turbotax With Serial Codes - Turbotax software is the easy way to prepare your tax return and maximize tax deductions. General Process to Install Turbotax: Installturbotax.com with license code TurboTax is a market leader in its product segment, competing with H&R Block Tax Software and TaxAct. Save the somewhere on your computer where you can find it. install Turbotax with license code If you need help finding your check our instructions for Windows or Mac.Finally, install your software by double-clicking the downloaded file.H&R Block, Inc., or H&R Block, is an American tax preparation company operating in Canada, the United States, and Australia. activate.hrblock.com/crj The company was founded in 1955 by brothers Henry W. Bloch and Richard Bloch.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 07:57    Titel: Antworten mit Zitat

It also offers consumer tax software as well as online tax preparation and electronic filing from their website. Download and/or Open the Disney Plus App on your device. If you need help installing, we can help with Windows or Mac. Turbotax.ca/download TurboTax is pretty useful, as it makes the complicated process easy. When you make a purchase of the software you need to install and activate turbotax from If you don’t already have one then here is how you can generate with ease.install Turbotax with license code It is just one of the top leading software which allows regulating the income tax returns.Turbotax.ca/download is a software package that helps you manage your income tax returns.Intuit produces it. It is one of the top software that allows you to control your income tax returns. Installturbotax.com with license code TurboTax Canada is the number one tax preparation software in Canada as it makes complicated tax season a breeze.H&R Block, Inc., or H&R Block, is an American tax preparation company operating in Canada, the United States, and Australia. activate.hrblock.com/crj The company was founded in 1955 by brothers Henry W. Bloch and Richard Bloch.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 07:58    Titel: Antworten mit Zitat

activate.hrblock.com/crj Download and/or Open the Disney Plus App on your device.The software comprises of different features and tools that help in the automatic preparation and filing of tax. Installturbotax.com with license code Turbotax.ca/download is tax preparation software for the Canadian tax returns. Turbotax.ca/download The software offers a user-friendly interface for processing and electronic filing of tax returns for individuals and businesses. Download the turbotax software from turbotax.ca/download. Turbotax.ca/download With software you’ll reap the benefits of an interface that’s so easy to use that it actually guides you step by step through the entire filing process, and you’ll enjoy a trio of guarantees that take all of the risk out of doing your own taxes in the most cost-effective way possible.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 07:59    Titel: Antworten mit Zitat

TurboTax is a software package for preparation of American income tax returns, produced by Intuit. install Turbotax with license code TurboTax is a market leader in its product segment, competing with Tax Software and TaxAct.Turboax Canada is a good choice for first-time tax filers. Activate.hrblock.com/crj - Let H&R Block Help You Understand Your Income Tax Filing Requirements with the guide. activate.hrblock.com/crj H&R Block offers a broad range of tax preparation plans to choose from, including online options and in-person tax preparation and support.It asks you questions in simple language and guides your through your tax return step-by-step. Enter Turbotax license code online Get your taxes done right at anytime from anyplace from Seamlessly switch between any device and safely pick up right wherever you left off when it’s simple for you.Turbotax.ca/download - Download, install and activate turbotax canada from install.turbotax.com or install Turbotax with license code and enter 16 digit turbotax activation code.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 08:05    Titel: Antworten mit Zitat

It asks you questions in simple language and guides your through your tax return step-by-step.Get your taxes done right at anytime from anyplace from Seamlessly switch between any device and safely pick up right wherever you left off when it’s simple for you.Turbotax.ca/download - Download, install and activate turbotax canada from install.turbotax.com or turbotax.ca/download and enter 16 digit turbotax activation code.You can sign in to your H&R block account at – activate.hrblock.com/crj and if you face any issues in sign in then contact to technical support team.Turbotax.ca/download gives you the tools you need to make complex tax issues a simple and straightforward process, activate.turbotax.com and you won’t have to worry about making simple calculation mistakes when completing your return.Install Turbotax with License Code - Turbotax.ca/download Turbotax license code is a 16-character combination of letters and numbers that verifies the software and allows you to finish installing and begin using TurboTax.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 08:06    Titel: Antworten mit Zitat

If you originally Download h&r block with activation code using a CD, you'd need to use that CD to install the software again on a new computer. activate.hrblock.com/crj To do this, just find your original H&R Block Software installation CD. TurboTax is prominent software amongst the taxpaying class, known for providing benefits on filing annual tax returns and tax preparation. Turbotax.ca/download We provide support to install, activate and update your product quickly. Your product will be activated by the third party support team. To setup your printer you can goto printer setup. install Turbotax with license code Go to and create your Amazon account, if you already have an account then sign in to your account. TurboTax is one of the commonly used tax preparation software programs that provides benefits for filing annual tax returns. Installturbotax.com with license code Nowadays, many individuals are trying to get started with this software to achieve the filing of their hectic tax returns comfortably by sitting at home.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 08:08    Titel: Antworten mit Zitat

Then, you can install the software on the new computer. activate.hrblock.com/crj If you are looking for H&R Block Login or Sign up guide? To Login into H&R Block is very easy. Enter the 10-character activation code at found on the front of the booklet that came with your software.activate.hrblock.com/crj Your activation code is needed for your installation and gives you access to five free federal e-files.H&R Block is also known for having some of the best tax refund advance products available.Are you looking for "Install Turbotax With License Code​ We provide aggregated results from multiple sources and sort them by user interest. install Turbotax with license code There are many versions of TurboTax, and multiple steps are available online on how to download TurboTax on Windows 10, how to install TurboTax with CD or without it on Windows 10, etc.Disney Plus is one of the most popular streaming services in the world. You can watch Disney plus on any iPhone, android, windows or other device also. All you need is to visit disneyplus.com/begin and create your disney plus account and choose your subscription plan.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 08:09    Titel: Antworten mit Zitat

TurboTax is the number one tax software in Canada. It is a program that is recommended for simple business returns. install Turbotax with license code Install turbotax with license code to create and file taxes accurately and well on time.Intuit TurboTax is our best overall pick for small business online tax software because of its intuitive interface, Turbotax.ca/download extensive deduction and credit database, and startup-focused support.H&R Block does have a robust free file tier that includes a lot of common tax situations, including employment income, earned income tax credit, and more. activate.hrblock.com/crj Many users will qualify for free filing with H&R Block. You can create and sign in to h&r block account at free.With the entire catalogue of Disney classics available, plus new favorites like Hamilton and exclusives like Muppets Now, it’s not hard to see why.But when it comes to technology, sometimes you need a little help to get going. One of the issues people are seeing now is a message prompt telling them to go to Disneyplus.com/begin or Here is what to do if you see that message on your screen.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 08:12    Titel: Antworten mit Zitat

TurboTax.com is a tax management & prep software that enables you to file your taxes smoothly. Unlike the traditional methods,Installturbotax.com Turbotax doesn’t beat around the bush and gives you the freedom to file your taxes with precision and accuracy.Turbotax.ca/download is a plan of software application, which assists to take care of income tax returns. install Turbotax with license code Intuit generates it.Not only does TurboTax guarantee you the maximum refund you’re eligible for, Turbotax.ca/download but it also guarantees you complete accuracy in your return and offers a money back guarantee if you’re not completely satisfied with the product. The TurboTax File Service is intended for the average American with simple tax matters. When you shop for software you need to turbotax download with installation key. one can easily install TurboTax on Windows 10 with CD.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 08:13    Titel: Antworten mit Zitat

With the entire catalogue of Disney classics available, plus new favorites like Hamilton and exclusives like Muppets Now, it’s not hard to see why.But when it comes to technology, sometimes you need a little help to get going. One of the issues people are seeing now is a message prompt telling them to go to disneyplus.com/begin or Here is what to do if you see that message on your screen. Turbotax.ca/download would help you to prepare income tax returns. Thus, it is an effective way to manage your taxes. People mostly from Canada use this software to manage their taxation system. Therefore, install Turbotax with license code is one of the critical software which everyone needs to use it.Disney Plus is one of the most popular streaming services in the world right now. With Disney Plus, you can enjoy the full catalog of Disney HD video content that. Visit disneyplus.com/begin Disneyplus Begin com if you want to create your account on Disney Plus or if you're looking to obtain some information about it. Disney Plus is an on-demand, ad-free streaming service for Disney fans. So the installation of the drivers becomes of utmost importance. Drivers installation is a very important step in the ij start canon setup. ij.start.canon If you are wondering that how one must install the following then let us tell you that there is a link named ij.start.canon.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 08:14    Titel: Antworten mit Zitat

Start streaming today with disneyplus via disneyplus.com/begin With the entire catalogue of Disney classics available, plus new favorites like Hamilton and exclusives like Muppets Now, it’s not hard to see why. You have to select the video app and go to the “My Apps” or “Apps” depending on the model you are using. Follow the on-screen prompts on amazon.com/mytv to complete the process. A new screen will open which will ask for the “ Amazon Prime Verification Code.If you have recently bought a canon.com/ijsetup IJ printer and are trying to set it up for the very first time, then follow these instructions carefully.H&R Block offers a wide range of tax preparation plans to choose from, including online options and personalized tax preparation and support. activate.hrblock.com/crj Their online plans are available in packages that make sense for regular employees who are paid at W2, freelancers and small business owners, and more.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 08:15    Titel: Antworten mit Zitat

Sublimation printer is probably the most important aspect of this printer and can be the difference between a Sublimation printer cheap-looking shirt – and a shirt with high quality and high-resolution printing.If you’ve used any Intuit products before, like QuickBooks, Mint, or Lacerte Tax, you must be aware of its intuitive ease of service. Let's get started with the process to Turbotax.ca/download here.How do you activate your 8-digit code to disneyplus.com/begin? The growth of OTT platforms has made it easier to access content. Netflix, Amazon, Hulu, DisneyPlus, and a number of other options are accessible. You can access these platforms with as many devices you’d like. disneyplus.com/begin is all the trend these days, featuring the most-watched shows and films.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
chhanchal
•---->
•---->


Anmeldedatum: 20.12.2022
Beiträge: 906

BeitragVerfasst am: 31.01.2023 - 08:16    Titel: Antworten mit Zitat

If you are interested in watching the all-new streams of Disney plus code, then don’t wait; just go to the Disney plus website. It will be the best experience for you to learn the installation of the disneyplus.com/begin. Also, we’re going to explain the installation for the same on your Tv as it will improve your experience of watching the shows on your Tv screen. The only things that you’ll need are a Tv and a smartphone or a Pc. Now let’s see the process in detail.H&R Block Tax Software is designed for those who want to be in control of their tax preparation experience and feel empowered by completing their own returns. They want to get the biggest refund possible and are often the homeowner, investor, or both. visit activate.hrblock.com/crj for more information.Turbotax.ca/download is an income tax preparation software that allows individuals to calculate and file their federal and state income taxes. This software includes various features and tools that help in the automatic preparation and filing of taxes. It also indicates the necessary updates and informs the timing of tax payment.Microsoft has made console gaming more convenient and easier than ever with the provision of the Remote Connect feature and aka.ms/accountsettings visit here.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
Beiträge der letzten Zeit anzeigen:   
Dieses Forum ist gesperrt, du kannst keine Beiträge editieren, schreiben oder beantworten.   Dieses Thema ist gesperrt, du kannst keine Beiträge editieren oder beantworten.    Fischer-Bayern.de Foren-Übersicht -> OS X-Snippets Alle Zeiten sind GMT + 2 Stunden
Gehe zu Seite 1, 2  Weiter
Seite 1 von 2

 
Gehe zu:  
Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.


Powered by phpBB © 2001, 2002 phpBB Group
Deutsche Übersetzung von phpBB.de


AppleScript für absolute Starter