Ask one/first time for password in Xcode/applescript app?

Hello,
I've an app, that's replacing/deleting/copying files a lot.
The annoying thing is that each time finder (or gives my app finder the command to) replaces/deletes/copy files,
finder(/my app) ask for the user password... And 'each time' is a lot in my app...
I understand I can't disable this security measure, but is there a way it only ask when my apps starts?
I know it's possible, because I saw it somewhere in a app...
Thanks in advance,
Isaiah
P.S. Isn't it weird, the 'asks for password'-dialog says 'Finder wants to replace/delete/copy files', but when you do that trough Finder, the dialog doesn't show up ...

It looks like you are placing your application support files in a location that the user doesn't have access for - normally, you should be using the acount that is running the application.  See the File System Programming Guide.
There are methods (both Cocoa and Standard Additions) to get paths to the various default locations that you should look at using.  For example, my startup disk is not named "Macintosh HD", so your application fails at just about everything on my machine.
BTW, using NSOpenPanel will avoid that annoying choose file bug.

Similar Messages

  • Startup disk ask me 2 times for password (authenticaton)

    First thanks for read my question, so here is my problem I startup from my external hardrive and evrything was normal and I starup from it like three times because I copy some files from it and then I copy some file from my internal disk to the external, but my problem is that when I finish to tranfer my files back and foward sudendly if I try to startup from any of the disks the external or internal via *systempreeference/startup disk/ when I click on the lock the authentication window appears so I enter my password when hit enter or ok the same windo appears again (2 time) and if I click on cancel the lock unlocks so there is my problem why appears two times and why unlocks if I click on cancel the secon time it appears.*
    Trobelshot
    delet many .plist
    restart the computer
    creat a new user account does the same
    repair permission
    reset P-ram
    reset PMU
    is only in that lock the others work well
    Thanks

    ok something new that maybe can help if I go to system preference/security and unchek Require password to unlock each secure system preference then when I open system preference/starup disk and unlock the lock I only have to enter the password one time. But I like to have the (Require password to unlock each secure system preference) chek. In a separate note I try to reset my password from the installing DVD to see if that fixed the problem but guess what I can't reset my password from my installing DVD here is the link to my other thread (http://discussions.apple.com/thread.jspa?threadID=1316202&tstart=0)
    Thanks

  • HT201209 When I press redeem it asks me to sign in and then enter my iTunes card code. After entering in my iTunes card code it then asks me three times for my password. Right after it says: Error press continue and sign in to redeem code. Please help me

    why is it whenever I sign in and put in my code it asks me three times for my password and then says: "Error press continue and sign in to redeem code." I really need help because I have three fifteen dollar cards that I want to put on! I had four but then for some reason the first one worked after a long time of trying but the other ones didn't. I have the latest version and all my stuff is updated.

    You might have mentioned that. Your next step would be to contact iTunes Support:
    iTunes Support WorldWide
    Cheers,
    GB

  • How to set up Airport Extreme with Charter ARRIS Modem TM902A for the first time for WIRELESS.

    How to set up Airport Extreme with Charter ARRIS Modem TM902A for the first time for WIRELESS.
    When Charter Tech goes to your site, have them connect the modem up, but do not connect the modem to your iMAC or MacBook Pro.  What you want to do is connect the Airport Extreme to the iMac or MacBook Pro first with the Ethernet Cable. You have to do this to configure via Airport Utility to set up the Base Station Name & Base Station Password.
    You will then create/configure a Wireless Network, create your Wireless Password that will be entered on each of your Devices, example, Apple Tv, your iPhone, etc., you want to allow access to your Wireless Network you are creating.
    Wireless Security will be -> WPA/WPA2 personal or just WPA2
    Enter the Wireless Password you want
    Verify the Wireless Password (enter it again)
    After it is created you will see it on the Airport Utility window with the name you created for it and to the left, will be a Dot (circle that will be yellow).
    Next you then want to unplug the power to the Airport Extreme, and then take the end of the Ethernet cable you unplugged from the iMac or Lap top MacBook Pro and connect it to the back of the Modem.
    Next unplug the power cord from the modem and wait about 5 minutes, then plug the power back into the Arris Modem and wait until all lights come back on the modem wait
    about 5 minutes, then plug the power cord back to the Airport Extreme and you will see it the light blinking yellow.  Wait about 5 to 10 minutes, during this time Restart you IMAC or MacBook Pro, and once it is back up click on the Airport Utility and you should see on the Airport Utility screen.
    For INTERNET to the left the light should be green and you should see the Airport Extreme also appear and the light to the left on the screen should also be green.  If they are, you then should be able to click on the Wireless Symbol on top of bar of the screen and click to select the Wireless Network Name you created.
    If you Do Not See the light (Icon) next to INTERNET turn Green, or if you see the Internet Light Green, but the Light (Icon) next to the Airport Extreme is yellow, unplug the power again to the modem and unplug the power again to the Airport extreme and wait about 15 minutes or up to 30 minutes. Then plug the power cord back to the modem wait till all the lights light up then, plug the power cord back into the Airport Extreme and Restart your iMAC or MacBook Pro.
    The Airport Extreme light should change from yellow to green. Open up the Airport Utility to see what the indicators are showing they should both be green.  Again select Wireless network you created under the Wireless Icon on the top right of the screen. Open Safari and see if you are able to Route to a web page or the apple site should appear.
    WHAT TO DO IF YOUR AIRPORT EXTREME WAS PREVIOUSLY SET UP FOR USE WITH ANOTHER CARRIERS ROUTER OR MODEM.
    NOTE:  If you already had your Airport Extreme connected for example, I previously had ATT Uverse and the Airport Extreme was connected to the Wireless Router Model 3801HGV, I disabled the Uverse Wireless and used the Airport Extreme for the Wireless signal in bridge mode, as the Airport extreme Signal is much stronger than the Uverse router, and I was able to obtain a Wireless signal with the Airport Extreme way much better with no signal loss which was very very frustrating with the Uverse router.
    Anyhow if you had it hooked up like this, now that you will be using it with the Charter ARRIS Modem TM902A, you will need to reset the Airport Extreme to clear out the old data it has in memory, with the previous set up otherwise it will not work. Trust me I spent 6 hours trying to make it work reading all Apple Support Community questions and answers relating to this type issue/problem others have been having trying to get their set up working. I tried all the tips, and I finally decided just to see if by chance I would be able to connect with someone with Charter Tech support who might be familiar with Apple to be able to assist me and by luck I did.  He told me why it was not working and was all due the previous configuration with the ATT Uverse router was still in memory with the Airport Extreme. Finally it was 10:30 PM when I decided to call Charter Tech Support and I had been working on this since 3:00 pm pacific. I did not call them earlier as all the post I read said they never received any good help from Charter. After calling them I finished up by 11:00 PM and was able to finally connect Apple Tv, iMac, iPhones and Macbook Pro. We love our Apple Product and Happy all is connected with the new
    Internet Provider Charter. I must say the speed is way way much better than it ever was with AT&T Uverse. 
    THIS IS WHAT YOU WILL NEED TO DO:
    First you will need to unplug the Airport Extreme, then by taking the tip of a pen or paper clip end you need to push the reset button on the back of the Airport Extreme and hold it
    down and at the same time plug the power cord back into the Airport Extreme count to 5 or 10 then release the reset button. Then once he light in front of the Airport Extreme stops blinking you need to plug the Ethernet cable from the Airport Extreme to your iMAC or Macbook Pro, and restart which ever one you have, then open the Airport Utility once it is back up.  If you see airport extreme pop up with the old network name or it shows and yellow triangle click on the Airport Extreme ICON it will not let you configure it but will ask if you want to get rid of it or remove and just do it.  Then Again restart your iMAC or MacBook Pro, open up Airport Utility again, and on the top left you should see under “Other Airport Base Stations” the MAC ID for the Airport Extreme.
    You will then create/configure a Wireless Network, create your Wireless Password that will be entered on each of your Devices, example, Apple TV, your iPhone, etc., you want to allow access to your Wireless Network you are creating.
    Wireless Security will be -> WPA/WPA2 personal or just WPA2
    Enter the Wireless Password you want
    Verify the Wireless Password (enter it again)
    After it is created you will see it on the Airport Utility window with the name you created for it and to the left, will be a Dot (circle that will be yellow).
    Next you then want to unplug the power to the Airport Extreme, and then take the end of the Ethernet cable you unplugged from the iMac or Lap top MacBook Pro and connect it to the back of the Modem.
    Next unplug the power cord from the modem and wait about 5 minutes, then plug the power back into the Arris Modem and wait until all lights come back on the modem wait
    about 5 minutes, then plug the power cord back to the Airport Extreme and you will see it the light blinking yellow.  Wait about 5 to 10 minutes, during this time Restart you IMAC or MacBook Pro, and once it is back up click on the Airport Utility and you should see on the Airport Utility screen.
    For INTERNET to the left the light should be green and you should see the Airport Extreme also appear and the light to the left on the screen should also be green.  If they are, you then should be able to click on the Wireless Symbol on top of bar of the screen and click to select the Wireless Network Name you created.
    If you Do Not See the light (Icon) next to INTERNET turn Green, or if you see the Internet Light Green, but the Light (Icon) next to the Airport Extreme is yellow, unplug the power again to the modem and unplug the power again to the Airport extreme and wait about 15 minutes or up to 30 minutes. Then plug the power cord back to the modem wait till all the lights light up then, plug the power cord back into the Airport Extreme and Restart your iMAC or MacBook Pro.
    The Airport Extreme light should change from yellow to green. Open up the Airport Utility to see what the indicators are showing they should both be green.  Again select Wireless network you created under the Wireless Icon on the top right of the screen. Open Safari and see if you are able to Route to a web page or the apple site should appear.

    I just got a Charter Modem. Model TM822. While I was moving, my Airport Extreme was still at my old place.
    I have a Linksys WRT320N I used for the initial Charter setup.
    I can get my Airport to work here, but the Internet light on the Modem flashes Yellow.
    Hasn't caused any issues so far but one thing I did notice.
    On the Linksys there were 3 DNS servers listed.
    The Airport Extreme only lists 2 and i don't see where I could add another, only change whats already there.
    I tried everything above, but light on modem still flashes yellow.
    I have the technicians cell phone. Told me "that shouldn't be" and gave the same advice listed above.
    I'll break down and call Charter one day, see if it's on their end. NSA tracking may need a reset LMAO.

  • I want to know why some box of Iphone5s it's not come full accessories in box simple my iPhone 5s I have bought from Apple store last week it's first time for me use iPhone but so surprise me how the company make the phone have to use a pin to open

    I want to know why some box of Iphone5s it's not come full accessories in box simple my iPhone 5s I have bought from Apple store last week it's first time for me use iPhone but so surprise me how the company make the phone have to use a pin to open the sim but didn't give a pin inside the box and I ask staff at store their said they also don't know some box have some of are don't have a pin come together so then they told me I have to find solution or I have to buy a pin by my self I can buy it by myself but I really don't understand how come apple big company but how it's happen like this?thank you.

    Where did you purchase this. The US phones do not come with the SIM removal tool anymore. They haven't for some time now. I'm not even sure it comes with any of the devices anymore. You can just straighten out a paper clip and do the same thing.

  • HT3702 I have paid once for one month subscription for al jazeera sport live app. I just released after few months that they are automatically charging me on monthly bases. How i can stop them charging me for something i did not use and i did not authoriz

    I have paid once for one month subscription for al jazeera sport live app. I just released after few months that they are automatically charging me on monthly bases. How i can stop them charging me for something i did not use and i did not authorize?

    You possibly set up an auto-renewing subscription with the app - there are instructions on this page on how to manage them, including how to stop them : http://support.apple.com/kb/HT4098

  • Essbase 9.3.1 fails login the first time for both LDAP and Native users

    Hi,
    Whenever I try to login into Essbase server using AAS or Maxl, it fails for the first time but when I try the second time it works.
    Essbase Logs at the time of the error shows:
    Local ESSBASE0 Info (1051001) Received client request: Get Log File (from user hadmin )
    Local ESSBASE0 Info (1051001) Received client request: Get Server Locale Description (from user hadmin )
    Local ESSBASE0 Info (1051164) Received login request from xxx.xxx.xxx.x
    Local ESSBASE0 Error (1051293) Login fails due to invalid login credentials
    Local ESSBASE0 Warning (1051003) Error 1051293 ~processing request Login - disconnecting
    SharedServices9\SystemErr.log
    SystemErr R com.hyperion.interop.AuthenticationException: Could not authenticate user 'CSSToken'. Please ensure the username and password is correct.
    SystemErr R at com.hyperion.interop.webservices.Security.slideAuthenticate(Unknown Source)
    SystemErr R Caused by: java.lang.Exception: Interop Security: Unauthorized
    SystemErr R at com.hyperion.interop.webservices.Security.authenticate(Unknown Source)
    SystemErr R 1282785593 [WebContainer : 0] WARN security.SecurityFacade - Error Executing cssAuthenticate()
    Error Code: -1
    com.hyperion.css.CSSTokenNotAcceptedException: Token is invalid. Error Code: 11
    And we are using SSL? Help please... Thanks.

    I know this wont help but we had the same issue in 9.3.1 and decide to reinstall without SSL as we could not get to the bottom of it.
    I suspect there s something wrong with the SSL config but not sure what it is...
    Seb

  • Yosemite server Profile manager how setup time for password after sleep

    Hi,
    In Profile Manager in Setup & Privacy is possibility setup password after sleep, but I need setup time period. Is it possible? Because when I push this profile it prevent users to setup this period and when i remove this profile (whole payload for Security & Privacy) it still prevent users to change this two setting.

    Hi CodyCodes,
    Just discovered the same issue today as well.  Further complicating things, the screensaver timeout setting in Login Window doesn't apply to Profile Manager clients no matter what the setting.  This was reproduced and confirmed by the Apple Tech I was working with.  He's submitted the bug to their engineering staff.  I requested that he ask them why there is no setting for password on sleep or screensaver.  Hopefully this is resolved soon, as this feature is 99% of the reason we're implementing Profile Manager to begin with.
    Cheers

  • I need help, i just synced my iphone3gs for the first time and now most of my apps wont work

    I just used itunes for the first time to sync my iphone 3GS!!!  Now, half of my apps will not work! Any suggestions? I touch on the app and it flashes real fast then back to my home screen...  HELP PLEASE!!!!

    Try to reset the phone by holding the sleep and home button for at least 10 sec, until the Apple logo comes back.
    If this does not work, restore the phone. Restoring is covered here: http://support.apple.com/kb/HT1414

  • Slow start first time for domain user

    When a domain user (Active Directory, Win2003) starts StarOffice 8 first time, it takes very often about 10 minutes until the program is started with a 10MB-network. Next time it takes only about 15-45 seconds on the same computer. I have noticed that is very high network traffic when the user starts the program first time from the server where the user folder "Application data" is saved. But the StarOffice8 folder in "Application data" has only the size of 2.8 MB (38 folders and 87 files).
    Can I speed up the first start of StarOffice 8 for new users?
    Is "copy files from another users Application data/StarOffice8" a solution?

    Spotlight indexing may take  a while and slowdown the Mac.
    You can return a new Mac within 14 days of purchase.
    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273
    Call AppleCare.
    Best.

  • How to get one elapsed time for two loops OR MORE

    I'm calculating the time spent to maintain a value "elapsed time" for 2 things(A and B) differents,what to change in order to have 1 "elapsed time" not 2 ,so the value of "elapsed time" is caculated the moment the user maintain the value of A and B
    Attachments:
    item n4 complet.vi ‏3850 KB

    My VI is already attached
    Elapsed time 2 is calculated when the user starts the test of "variometre",maintien 3 when the user keeps the pointer of the variometre in 7 for 10 seconds
    Elapsed time  is calculated when the user starts the test of"horizon artificiel",maintien 2 when the user keeps the pointer of the horizon in 30 for 10 seconds.
    that's good if i wanna each test alone,but now the complication of this one is to maintain the 2 values 7 of the variometre and 30 of the horizon in the same time during 10 secs.that's why i want to have just 1 elapsed time and 1 maintien,because the the 2 tests will run on parallel then the elapsed time must start and when the user realises the 2 conditions in the same time,the maintien must begin counting.
    Attachments:
    item n4 complet.vi ‏3850 KB

  • HT4061 I had read that Apple will replace a cracked screen on an iPad the first time for free. Does anyone know if this is true?

    I have read that Apple will replace a cracked screen on an iPad the first time it is damaged for free. Does anyone know if this is true?

    apple's official policy is: cracked screens = accidental damage
    With iPad 1 and 2, accidental damage is not covered by any apple care and a replacement iPad starts at $249 and goes up depending on the model.
    iPad3's were eligible for Apple Care + which offers two instances of accidental damage repair for $49 each time
    The 'apple store replaced my cracked ipad for free' is largely an urban legend. It's possibly happened, but those that have been on the receiving end were people that happened to get a store manager that defied Apple's official policy. Not to say it hasn't potentially happened, but it's an exception not the rule. And if you happen to be lucky enough to experience it, that's just what it is, luck. Not something to be counted on or expected.

  • Why is my daughter asked to enter my AppleID password to open *any* app on her iPhone?

    Preamble:
    When iOS 8 dropped and my family of 5 had all upgraded, I set up Family Sharing. As it turns out, it's an incomplete solution and is therefore completely useless for isolating the spendy account (home sharing, iTunes share, etc.), but setting all that aside, I figured we might give it a shot.
    It's OK - it's annoying that my kids need permission to download free apps, but OK. However, there is this strange bug I can't explain of figure out how to fix.
    Problem description:
    My daughter is logged into the iTunes store with her own AppleID and all looks well. However, any time she attempts to open any app at all other than the builtin apps, she gets a popup asking for the password for my AppleID! ***? Why is my AppleID even a thing on her phone?
    Post-description rant:
    Perhaps I was foolish to switch this on so soon - or indeed at all; I still have inexplicable inabilities to play a huge number of tracks in iTunes Share, across all devices (though it is not the same set of tracks on each device). But on the other hand, I don't see this issue described when I google around, so perhaps this is an anomaly, maybe some inconsistent/corrupt data, and there's a standard set of "switch it off and on again" steps that people might be able to suggest to take care of it.

    j0ni wrote:
    Preamble:
    When iOS 8 dropped and my family of 5 had all upgraded, I set up Family Sharing. As it turns out, it's an incomplete solution and is therefore completely useless for isolating the spendy account (home sharing, iTunes share, etc.), but setting all that aside, I figured we might give it a shot.
    It's OK - it's annoying that my kids need permission to download free apps, but OK. However, there is this strange bug I can't explain of figure out how to fix.
    Problem description:
    My daughter is logged into the iTunes store with her own AppleID and all looks well. However, any time she attempts to open any app at all other than the builtin apps, she gets a popup asking for the password for my AppleID! ***? Why is my AppleID even a thing on her phone?
    Post-description rant:
    Perhaps I was foolish to switch this on so soon - or indeed at all; I still have inexplicable inabilities to play a huge number of tracks in iTunes Share, across all devices (though it is not the same set of tracks on each device). But on the other hand, I don't see this issue described when I google around, so perhaps this is an anomaly, maybe some inconsistent/corrupt data, and there's a standard set of "switch it off and on again" steps that people might be able to suggest to take care of it.
    Wherever I said "iTunes share" I really meant iTunes Match. Sigh.

  • It is my first time I want to buy an app in the app store

    Hello,
    I wanna buy an app in the app store, but it is my first time.
    Now is my iPhone asking for some answers on mine security questions which I totally forgot.
    Is it still possible to buy this app?
    Kind Regards

    bouchellechick wrote:
    Thanks.......I actually live between the 2 countries, so if I changed my region and bank a/c details would I get access to the USA store then?
    As long as you were phiysically located inside the borders of the U.S:
    "The iTunes Service is available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the iTunes Service from outside these locations. Apple may use technologies to verify your compliance."
    http://www.apple.com/legal/itunes/us/terms.html#SERVICE

  • HT204088 how to report a problem -i have been charged several times for a purchase of single app

    i have been charged several times for purchase a single app!!

    Welcome to the Apple Community.
    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.
    Currently, if your purchase happens to be your most recent purchase you will not be redirected to the report form, in this case use the report a problem option from the invoice that was emailed to you.

Maybe you are looking for

  • Error: The data objet "p_t_ods" has no structure

    Hi guys!! I have a problem with a table: *program1* DATA: BEGIN OF t_ods OCCURS 0.         INCLUDE STRUCTURE zdeu0. DATA: END OF t_ods. ***Zdeu0 is a structure that it has field1 type c and field2 type c. perform change_table (program2) tables t_ods.

  • Ibook author uploading issues - help!

    Hi.  Finally got the approval and am in the delivery stage - but a big HOWEVER - I can't get the program to accept any of the copies of the publication piece I have.  I can't upload the iBooks Author version that I created and saved (the only edited

  • How do I restart a frozen download?

    I was downloading an app when it froze on the "Confirmation Required".  None on the buttons will work on that screen. I can use the phone as normal. Just not the App app. I turned the phone off then on, I went online (the download in progress did not

  • Xperia M4 flashlight doesn't work!

    Hi, a few weeks ago i've bought an Xperia m4, but from yesterday the flashlight doesn't work. I tried to format the device but the flash still doesn't work. Somebody can help me before take it to the assistance???

  • Creating Video for _Sorcerer s Apprentice_

    I have DVDs for F. and for F. 2000. I can create the whole movie on my computer using Cucu.'s iPod DVD & Video Converter Software, or on my wife's new iMac using Handbrake. But I haven't figured out how to create separate videos for each movie chapte