Check if two selected selected folders are not the same

Hi I want to duplicate a user-selected file to destination folder but I need to be sure that the user choose the destination folder (and create a duplicate in the same folder). Here is my attempt to create a test which doesn't work.
code/
set serverfolder to "destinationserver: destinationfolder:" -- this is a predetermined location and always the same
set foldername to "foldername:" -- this is a folder inside serverfolder
set filename to (choose file)
set destfolder to serverfolder & foldername as alias
set filefolder to folder of filename as alias
if (destfolder = filefolder) is true then
1
else
0
end if
/code
thanks for any help.

When adding text to an alias, you will need to coerce the alias to text (it is a file reference). Both the Finder and *System Events* can get the container of an object, but I'm not sure what you are wanting to do, since you are already specifying the destination folder. Are you wanting to make sure the source file is not in your destination folder? In that case, you can just get the paths as text and check if the source contains the destination.

Similar Messages

  • Two selection option-variables for the same object

    Hi,
    I'm using two selection-option variables for the same characteristic in my query:
    One is authorization variable and the other is used for restrictions (filter) in a selection screen.
    I get an error: SELOPT/Query variable .... does not allow any further selections.
    If a selection option-variable is used, no additional selections can be specified for this characteristic in this element.
    Is there a way to overcome this problem?
    Thanks,
    Hagit

    Hi,
    I have solved the problem by changing the authorization object (in RSECADMIN) from range to single value and also the variable in BEx from selection single value.
    To be more clear:
    object in RSECADMIN was: infoobject BT var1 - var5
    I have changed it to:
    infoobject EQ var1
    infoobject EQ var2
    infoobject EQ var3
    infoobject EQ var4
    infoobject EQ var5
    Hope this helps.
    Hagit

  • HT4262 I have two networks one each in two cities.  Both are named the same but require different passwords. I am at my second location but cannot connect to his wifi network. How do I delet one network so I can connect to my second network?

    I have two networks one each in two cities.  Both are named the same but require different passwords. I am at my second location and cannot connect to this wifi network. How do I delet one network so I can connect to my second network?

    Just go to the wireless network preferences and empty out all the stored wireless networks.. then scan and connect to the local wireless.
    Select them and tap the - button below it.
    Once they are emptied out.. it might be good to reboot the computer with the remember networks unchecked.
    Start with a clean slate.

  • I have an iMac OS X Version 10.5.8 but I also have a MacBookPro 10.7.5 version, why software updates are not the same? For example, when I want to know how much memory can not store in the same way in either computer.

    I have an iMac OS X Version 10.5.8 but I also have a MacBookPro 10.7.5 version, why software updates are not the same? For example, the way to see how much memory I have in my iMac is diferent than MacBookPro. And where I can see the memory of the disc I've got in my iMac? Than you very much.

    If you want everything the same on both computers you need to be running the same OS X version. You can't because your iMac is a PPC machine, not Intel.
    But to see information about your hard drive is the same for both. Simply select the drive icon on the Desktop. Press COMMAND-I to open the Get Info window. Disk information is in the upper panel.

  • Personal area and EE subgroup of Infotype 01 and 77 are not the same. Help!

    Hi All,
    Good day.
    I read your thread here and I guess we have a common problem. Can I ask for your help?
    I run the program RPURACU0 to update the new race and ethnicity data in infotype 77. But why it changed the Personnel Area and Employee Subgroup. Only the race and ethnicity codes should have been changed and not the Personnel Area and Employee Subgroup.
    Please help me what causes these discrepancies in data.
    Example:
    In PA20, enter personnel number 7600634. Personal area = US81 and EE Subgroup = U0. But when displaying infotype 77 the Personal area = US02 and EE Subgroup = U1.
    The personal area and EE subgroup of infotype 01 and 77 should be the same. In this example, they are not the same. Please help me to find out what causes this problem.
    Please reply asap because this problem should be solved immediately.
    Thanks in advance.
    Carina

    Hi GRM,
    Thanks for your reply.
    I checked the date from the table and I found out that:
    P0001-ENDDA not equal P0077-ENDDA
    P0001-BEGDA not equal P0077-BEGDA
    Please reply asap.
    Thanks,
    Carina

  • Combo chart- left right y-axis scale are not the same scale

    http://img20.imageshack.us/img20/6264/questionk.png
    the left and right axis scale are not the same.
    how to set it?
    Thank you very much!

    Hi,
    Try this
    In Chart, Goto Advanced properties -> check Synchronize Line and Bar Axis
    This will make both scale values same.
    Thanks,
    Vino

  • HT4864 How can I change my iCloud email to my AppleID email they are not the same

    How can I change my iCloud email to my AppleID email?  They are not the same and somehow were switched by my teenage daughter.  I can access the account and change anything except my iCloud eMail account.

    Hi itsjeffb,
    If I am understanding you correctly, it sounds like your daughter may have set up an alias account under iCloud. Your AppleID email address may or may not be the same as you iCloud email address, depending on how it was set up. The following articles provide more information about iCloud email addresses and how aliases work under iCloud:
    iCloud: About your icloud.com, me.com, and mac.com email addresses
    http://support.apple.com/kb/HT2623
    iCloud: Using your @icloud.com email address
    http://support.apple.com/kb/HT5441
    iCloud: Create or change email aliases
    http://support.apple.com/kb/PH2622
    Cheers,
    - Brenden

  • HT4061 How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases?

    How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases? I want my music to match on both ipad and computer.

    Purchases are forever tied to the AppleID they were bought with. There is currently no way to consolidate AppleIDs. Sorry.

  • The song palying and the album are not the same.

    When I'm playing my music on my iphine, the song and the album are not the same. Sometimes they are not even close to the same thing.

    hi
    You have to click on the song with the right click (or Option Click) and click on get information,
    in that menu you can define the order in the album

  • Can Anyone help with syncing my contacts are getting duplicated and there is a file from my computer and they are not the same it is driving me carazy can anyone help?

    Can Anyone help with syncing my contacts are getting duplicated and there is a file from my computer and they are not the same it is driving me carazy can anyone help?

    Are you in DSL? Do you know if your modem is bridged?
    "Sometimes your knight in shining armor is just a retard in tin foil.."-ARCHANGEL_06

  • Hierarchies are not the same as in R/3

    Hi experts !
    My Hierarchies in BW we are not the same as the source hierarchy in R/3.
    They are not time-dependant, and the upload is scheduled every night, and gives no error messages.
    Is there any known issues here?
    I'm in the 7.0 version, but the upload for the hierarchy is in the old version.
    The source hierarchy for account is using intervalls. Is that a problem ?
    Thankfull for good advise !
    Is there a possibility that the production bw is loading from the wrong client.. ?
    That the RFC connection secretly gets the Hierarchies from elsewhere...
    Message was edited by: Ingrid
    Ingrid Husby

    I had not found the button for choosing the last hierarcy in the infopackage..

  • "Batch NO SALEAB. and valuation type 1ST CHOICE are not the same"

    Hi MM guru,
    Please help me with the error message - "Batch NO SALEAB. and valuation type 1ST CHOICE are not the same" encountered during MB1b transaction.
    Thanks in advance,
    Iram

    Hello Amuthan,
    I'm using mov type 311 and the material is not batch managed. I've entered the supplying & receiving batch and then error "Batch NO SALEAB. and valuation type 1ST CHOICE are not the same" was encountered, I found out that in table MCHA that the batch & valuation type for this material is not the same thats why its showing the error. Can you please guide me on how to maintain the data in table MCHA? What configuration we need to set?
    Thanks in advance,
    Iram

  • My iPad was changed to Suomi language and I can't set it back to English the settings are not the same so that does not help

    iPad changed to Suomi language can't set it back to English. The settings are not the same as the advice given by support???

    Just follow this:
    http://support.apple.com/kb/ht2371

  • Sent boxes in Gmail and in Mail are not the same

    Hi, I am using Gmail and Mail in OS X lion.  When I send a message through Gmail (on Firefox), the message is not in the sent box in Mail. The sent box in Mail keeps messages sent through only Mail. Is there any way to "synchronize" sent boxes in Gmail and Mail? Thanks,

    If you have the Gmail account set up in Mail correctly, you will have the Gmail IMAP folder at the bottom of the Mail sidebar. The Inbox will automatically synced with the Inbox folder, so it won't show up in the IMAP mailboxes.
    Highlight the sent mailbox under the IMAP folder, go to the main menu in Mail, click on Mailbox, scroll down to the "Use This Mailbox For", and select Sent. Do the same for others you want to see such as Trash.
    Also, select to store messages on the server in Mail preferences under Mailbox behaviors and set you delete time to your preferences.

  • Why am i getting this error? they are not the same?

    1021: Duplicate function definition.
    1021: Duplicate function definition.
    stop();
    import flash.events.MouseEvent;
    // home button definition \\
    // Portfolio button definition \\
    Portfolio_btn.addEventListener(MouseEvent.CLICK, pClick);
    function pClick(event:MouseEvent):void{
        gotoAndStop("getPortfolio");
    // Contact Me button defintion \\
    Contact_btn.addEventListener(MouseEvent.CLICK, cClick);
    function cClick(event:MouseEvent):void{
        gotoAndPlay("contactme");
    why am i getting this error the functions have different names... idk what to do they are for two different buttons I am using action script 3.0

    i did what u said and it said these two lines were the same
    // Portfolio button definition \\
    Portfolio_btn.addEventListener(MouseEvent.CLICK, pClick);
    function pClick(event:MouseEvent):void{                                                         <--------this one
        gotoAndStop("getPortfolio");
    // Contact Me button defintion \\
    Contact_btn.addEventListener(MouseEvent.CLICK, cClick);
    function cClick(event:MouseEvent):void{                                                           <--------and this one
        gotoAndPlay("contactme");
    it gave me the same error but they are not the same

Maybe you are looking for

  • Can't read NEF files in PS CS4 w/ Nikon D600

    Have new Nikon D600 and CS 4; read Adobe Camera Raw 7.2 is the one to download. Did that but still can't read my NEF files. Is there another version i should be using? Thanks!

  • Accessing CVS from Java API

    HI, I need java code to access CVS files.Pls help me. Regards Seenu

  • Stripping all HTML tags from a CLOB

    Hi all, Running Oracle 9.2.0.8 on AIX... We have a table which stores HTML document fragments in a clob. I have a requirement to convert these to plain/text (strip all HTML tags) for sending in a plain/text email body. I have read the following solut

  • FM "FTP_COMMAND" ERROR

    Hi all, I am usinf FM "FTP_COMMAND" i am getting the following error *put hb_file.txt* *open hb_file.txt errno 22: Invalid argument* Thanks & Regards, vallamuthu>

  • Repeat delta

    How to do "Repeat delta"? Is there any direct option available from BW side for this? If not, from R/3 side using RSA7 transaction when doing "Delta repetition" it is asking for a variant to Save. What does this mean? What are the other input fields