Is it possible to have two different open statments

Basically what i am trying to do is get the script to do different things depending on how it is opened. I currently use "on open selection" which works fine when i drop files onto it. However i also want to be able to open the application normally, just by clicking on it.
Also is it possible to get it to have the option open thing like iPhoto does or is this a little too much to ask from applescript.

Hello
it seems that for the first time I read a wrong responce signed Camelot.
Not only an "end if" was missing in its script but it was unable to deal in case of a double click which never trim the on open handler.
Here is a skeleton used for many scripts I use daily:
-- here is the entry point reached by a double click usage
set my_files to choose file with multiple selections allowed
open (my_files as list) -- will be treated as (sel) in the open handler
-- here is the entry point reached when selected items
-- are dropped on the script icon
on open (sel)
-- do your duty here
display dialog "" & sel
end open
The report is something like:
tell current application
choose file with multiple selections allowed
{alias "Macintosh HD:Users:yvankoenig:Desktop:Annexes_Bash.pages:", alias "Macintosh HD:Users:yvankoenig:Desktop:analyse.rtf"}
display dialog "Macintosh HD:Users:yvankoenig:Desktop:Annexes_Bash.pages:Macintosh HD:Users:yvankoenig:Desktop:analyse.rtf"
{button returned:"OK"}
end tell
Yvan KOENIG (from FRANCE dimanche 13 août 2006 22:00:53)

Similar Messages

  • Is it possible to have two different DIO such as DIO 0 and DIO 8 to control 1 LED provided both DIOs are both true?

    is it possible to have two different DIO such as DIO 0 and DIO 8 to control 1 LED provided both DIOs are both true? If so, how do we connect the 2 IOs tothe LED? 

    Why use two DIO lines?  If they aren't doing anything else, just AND the signals in software and just use 1 output.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • HT1918 is it possible to have two different password within one iTunes account?  one to log in with and a different one to use when making a purchase?

    Is is possible to have two different passwords within itunes? one to log in with and a different one to make purchases with?

    The system is not setup to provide that kind of sservice.  If making certain purchases it does ask for an answer to one of your security questions, so that provides a little more security for some purchases, just not all.

  • Is it possible to have two different Contacts Lists in a Mac?

    I have to manage two separate Lists of Contacts.  Is this possible in a Mac?  Can I have two different Contacts electronic files?

    This is not possible. What exactly are you trying to accomplish? Note that you can always create two different groups within the Contacts app, and sort your contacts into one or the other (or both, if any are common to both). Alternately, if the goal is to keep contacts for two different people separate, the appropriate method is to create two different user accounts on the machine, and have each person use their own account.

  • Is it possible to have two different authorized Adobe accounts?

    We have two different email addresses, two different library cards, however we can only seem to open one Adobe Digital Editions. How does one go about changing the authorised user to be able to load books on each ereader?
    Thanks!

    If you buy two licenses you will have all you need to have two authorized users

  • Is it possible to have two different iTunes versions installed, by just using a different install folder on Win7, pointing at the same music resource?

    I really don't like the new version of iTunes, with CoverFlow removed. Makes navigation very poor IMO.
    Can I go ahead and just install an older version with CoverFlow still present in another Win7 folder, and point it at the same music resource?
    Very poor decision by iTunes to omit this popular preference - and unless its put back in quickly, can see peopl leaving when they feel their config has gone.

    I don't really want the hassle of uninstalling the 'latest' (****) version, as it might mess my system, plus, at some point, this will be upgraded, and I reckon with CoverFlow put back in! SO, I would upgrade this as my 'main install'.
    The older one, I would use temporarily, until put CoverFlow back into its newer releases, if you see what I mean.
    So, my question is implicit and more specific - can I have two different version installed, in different folders/locations, without causing conflicts I don't wanna uninstall the new one just to put the old one back on.
    Very bad that iTunes put me in this position, really.

  • Is it possible to have two different input forms to edit the same underlying data schema?

    I am noting that the Input Form name value must be equivalent to the underlying schema name.
    Hence it would seem only one form per schema is possible?

    The names don't have to match, but then the form XML has to explicitly call out the schema to edit with that form, using the attribute:
    entity-schema="namespace:schemaName"
    in the form open tag, e.g. <form entity-schema="neo:product">.
    Regarding your second question, can you use multiple forms to edit the same schema, let me look into that.
    Linda

  • Is it possible to have two different address books on one user account ?

    I currently have my address book on my mac however I would like to IMPORT an address book that I saved from our family reunion which was stored on someone else's macbook. I would like to keep this new address book separate from my own on my mac. Every time I try to Import the saved Address book, i get a message that says that if I import the new address book it will replace the old one...which is not what I want to do. Also, I do not wish to create another user account just to assign an address book to it.

    You can install additional language packs if you want to run the same Firefox version in different languages like I wrote above.<br />
    Select the one(s) that you want to install and click them on the XPI site to trigger the installation.
    http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/win32/xpi/
    The Locale Switcher extension allows to switch the language.

  • Is it Possible to have two different VOIP providers with Airport Extreme?

    I am moving to new location and want to discontinue my POTS phone line. I will have Time Warner VOIP cable modem for one telephone line and would like to add my old Vonage VOIP telephone appliance so I can keep that old number. I currently have cable modem to Vonage appliance to telephone and Vonage appliance to Airport Extreme base station. TWC tells me I have to connect the Vonage device to AEB. Vonage tells me I have to connect the Vonage device to a TWC modem router. TWC says they don't have a modem router.
    I also connect two TiVos wirelessly through the AEB. Any advice on how I can proceed?
    Thanks.

    I run the Time Warner VOIP off the Time Warner modem and the Vonage VOIP unit off my Airport Extreme Base Station which is, of course, downline from the Time Warner modem. No problems at all.

  • I added a new iTunes account. Wanted new library, did it, but now my old library dissappeared and I can't retrieve it on my laptop. How do I find it. Is it possible to have two different accounts with 2 different libraries and go from one to the other?

    I added a second account to my iTunes on my laptop. I wanted to give 2nd acct. its own library. I did by holding down shift key and going to start menu, choosing all programs then iTunes, then iTunes again. It asked me: choose library or create another iTunes library. I chose the later. I renamed it and saved in My Music. It automatically started up iTunes and brought me to the new library, but I cant get back to the old library with all my purchases, etc... What do I do to get the old library back? Computer illiterate, so please be kind. Thanks

    You are going to need to change the email address you use with your old ID. Once you have got access to your old account you will then log into both accounts at the same time on your Mac and transfer your data to a single account. We can do this later, but need you to get access to your old account first.
    My Apple ID

  • Is it possible to have two different back ups for my iPhone 4S? One in my laptop and one in iCloud?

    I want to restore my iphone 4S with a back up present in my laptop since I want to retrieve a file from that restore point. But first, I want to back up the current state of my phone to iCloud, thinking that it may be possible, so that I can retrieve the file then restore my phone to the back up I put in iCloud (the current state). So is it possible? If not, what could I do? I really want to retrieve that file without losing the current set up, files, messages and photos present in my phone now.

    Yes, it is. Launch iTunes with the Shift key held down as needed, or use separate Windows user accounts.
    (111542)

  • Possible to have two different QT on same machine?

    Hello there
    I need iTunes 6 for my iPod and QT pro 6 for my work. On the same computer.
    Any suggestions?
    Thanks in advance for your help!
    Gen
      Windows XP Pro  

    ok. Know what? It worked! Both quicktime running, and I can access my iTunes library again. I should have done that one year ago!! BUT!
    I uninstalled everything, and installed a 6.5.2 QT standalone on my external HD, registered and changed the name.
    What happened is that the new QT player I installed with iTunes installed itself directly on my HD without asking after recognising the old version. Which is a bit stupid, in my case (my HD is not on all the time). Should I uninstall everything, and reinstall on C:?
    Basically if I backup my C: disk with ghost or whatever and if I have to use a recovery, both programs will not be included, am I right?
    One step closer to the final answer...
    Gen

  • I'm trying to redownload my music onto a new computer and its not working..I think I may have two accounts open because the one im signed into is empty and I cant remember my log in info..and when I reset it it doesnt help.

    I got a new lap top and I was trying to re download my music to the new one and it's not working. I think I may have to accounts open because its saying mine hasnt been active in a while and I know thats not true...and there is no music in the library it's all empty...is it possible to have two accounts open? if so how do I cancel one. and keep the other....

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (122986)

  • First-time user of IPod Shuffle, my husand has an IPod Touch and has hundreds of songs already on his ITunes account. If Is it possible to have two ITunes accounts so his music is not automatically loaded onto my new Shuffle?

    Just bought an IPod Shuffle; my husband has an IPod Touch and has hundreds of songs on his ITunes account.  Is it possible to have two different accounts on the same computer to prevent his music from being loaded onto my Shuffle?

    When you say "iTunes account," I think you mean iTunes library.  An iTunes "account" is what you use to sign in to the iTunes Store (your Apple ID) and purchase songs (and other media).  The iTunes library is what you have on your computer, with your songs and playlists.  That is what you use for syncing iPods.
    You can have a separate iTunes library.  If you create a new user account on your computer (using Windows) and log in to that user account, iTunes will create a new iTunes library for that account.  In fact, Windows will keep ALL of your documents separate, as if you are using a separate computer.  That is probably the best way to keep your songs in a different iTunes library.
    You can also create a separate iTunes library in the same Windows user account, if you use this procedure to switch between iTunes libraries
    http://support.apple.com/kb/ht1589
    Also, you can use the same iTunes library, and decide what songs you want put on the shuffle.  iTunes does not automatically put songs on the shuffle, unless you tell it to do so.  This document explains how to load content on shuffles
    http://support.apple.com/kb/ht1719
    NOTE:  If the iTunes sidebar (along left side of window) is not visible, from the menu bar, under View, select Show Sidebar.  When connected, your shuffle appears in the sidebar, under DEVICES.
    FYI - There is a link to the shuffle user manual on this support web page for the shuffle
    http://www.apple.com/support/ipodshuffle/

  • Is it possible to have two versions of Muse on one Machine?  WhenI open Muse from my program menu in WIndows 7 it comes up the way I am used to.  I did an upgrade a week or so ago and now I have an Adobe Muse CC 2014 on my desktop.  WhenI open the applica

    Is it possible to have two versions of Muse on one Machine?  WhenI open Muse from my program menu in WIndows 7 it comes up the way I am used to.  I did an upgrade a week or so ago and now I have an Adobe Muse CC 2014 on my desktop.  WhenI open the application that way the GUI interface looksw totally different, more like Illustrator.  What is that all about?

    Since posting the above, I have resolved a sensible work-around in regard to ebookstores which prefer us to have separate accounts for our separate Adobe IDs.
    However, I really would appreciate it if anyone here can confirm that a DRM controlled book does actually become associated with a particular Adobe ID account at the time of first download to Digital Editions on that PC/device.
    Two large book stores have said using my account with them to download books to our two separate Adobe IDs is OK, but I don't want to find my husband is unable to open his downloaded books.
    Thank you folks for any advice you can give,
    Sue

Maybe you are looking for

  • No image

    I have an HP media center m8000 PC when i turn the computer on there is no beeps but the main problem is when i plug in a monitor there is nothing also that goes for the hdmi plug all the fans are working including the video card so i didnt think any

  • How to find the average a key figure in bex

    Hi All, I have a fey kigure (ZAMOUNT) which is amout field. So if there are 'n' records, I need to calculate the average of the amount field(AVERAGEAMT) for those n records. Example:                      EMPLOYEE      ZAMOUNT        AVERAGEAMT record

  • Select query for dates

    Hi All, Could you please help with a SELECT query to retrieve the following dates ... sysdate - 1 sysdate, sysdate + 1 Sorry for the miscommunication .. I wanted these dates in a single column as given below 21-May-2012 22-May-2012 23-May-2012 Regard

  • UMC_CALDAY_TO_FISCPER

    Hi Gurus, The functional module UMC_CALDAY_TO_FISCPER is only existing in ECC system. I want to use this function module in BI system to derive the fiscal year/period based on calender day. How to create this function module in BI? To what function g

  • My hidden purchases on my computer aren't hidden on my devices

    Please can somebody help me! I have done EVERYTHING correctly from http://support.apple.com/kb/HT4919 and the film in question IS hidden on my computer but remain shown on my devices. I've tried syncing to the devices, turning off the Show All Videos