Why the same UI login script can't work with OS X 10.7 but 10.6 fine

HI everyone,I can use a script as
/usr/bin/osascript <<AppleScript
tell application "System Events"
keystroke "username"
keystroke return
delay 1.0
keystroke "password"
delay 1.0
keystroke return
end tell
AppleScript
to remote log in via UI when I'm in mac 10.6, but now it can't work with Lion,
got an "execution error:An error of type -10810 has occurred.(-10810)" message
then try another one which also works fine in 10.6:
osascript<<EOT
tell application "System Events"
tell process "SecurityAgent"
set value of text field 1 of group 1 of window 1 to "root"
set value of text field 2 of group 1 of window 1 to "password"
delay 0.5
key code 36
delay 0.5
key code 36
end tell
end tell
EOT
still got error,need your help ,thanks a lot ~

Either purchase Snow Leopard (if it will run on your computer) and then upgrade to iOS 7 or return the Nano.

Similar Messages

  • I have multiple accounts using the same smtp server, I can only reply with one as the settings wont allow me 2 servers

    I have tried to set my email to reply from my iphone 5 both of which use the same SMTP server. I can't change the settings on the others as it will only allow one mail account. Can I add multiple  with the same smtp?

    I Am not using gmail I use seperate company for my mails both use the same smtp server. The problem is when I set my first account it them uses these details and passwords when I create the second account saying that the smtp server is already in use by the primary account. I therefor can't set the password.

  • ARD Login script doesn't work with similar usernames

    We have a lab of Macs all of which have two accounts whose usernames start with the same characters (rms and rmsadmin). There are times when we would like to be able to log on to all the computers simultaneously as the rmsadmin user with ARD. Because both of the usernames start with the same three characters, when the following commands are sent via ARD, the login process defaults to selecting the student account (rms) and won't log in as rmsadmin:
    osascript -e 'tell application "System Events" to keystroke "rmsadmin"'; \
    osascript -e 'tell application "System Events" to keystroke return'; \
    osascript -e 'tell application "System Events" to delay 0.5'; \
    osascript -e 'tell application "System Events" to keystroke "password"'; \
    osascript -e 'tell application "System Events" to delay 0.5'; \
    osascript -e 'tell application "System Events" to keystroke return'
    Anyone have a solution to this?
    Thanks in advance for taking the time to read this and giving it some thought.
    Peggy
    Xserve PowerPC G4, MacBook Pro, PowerBook, etc.   Mac OS X (10.4.8)  

    Since we do have the same problem but also some additional infos I bump this thread in the hopes of getting some answers.
    The login script does run, but unfortunatly only when I start it manually. It does not run during login.
    The only purpose of the script is to map some drives and it works fine under XP. Where else can I find infos about the problem?
    Our script looks like that:
    On Error resume next  
    Set objADSystemInfo = CreateObject("ADSystemInfo")  
    Set objUser = GetObject("LDAP://" & objADSystemInfo.UserName)  
    strDn = objUser.Get("distinguishedName")  
    strSam = objUser.Get("sAMAccountName")  
    strCn = objUser.Get("cn")
    Set colGroups = objUser.Groups  
    Pos = Instr(strDn,"OU=")  
    if Pos = 0 then  
        strOu = "" 
    else  
        strOu = Mid(strDn,Pos+3,2)  
    end if  
    Set objNetwork = CreateObject("WScript.Network")   
    objNetwork.MapNetworkDrive "h:", "\\frodo\user\" & strSam  
    objNetwork.MapNetworkDrive "j:", "\\frodo\misc" 
    objNetwork.MapNetworkDrive "l:", "\\frodo\department" 
    objNetwork.MapNetworkDrive "q:", "\\frodo\projects" 
    objNetwork.MapNetworkDrive "k:", "\\frodo\department\" & strOu  
    if strOu = "IT" then  
        objNetwork.MapNetworkDrive "x:", "\\frodo\software" 
    end if  
    'WScript.Echo strOut  
    For Each objGroup in colGroups  
        if objGroup.CN = "DreCash" then  
        objNetwork.MapNetworkDrive "p:", "\\gollum\drehcash" 
        end if  
    Next 
    objNetwork.MapNetworkDrive "i:", "\\192.168.1.6\shares" 

  • Can I have 2 different accounts in iTunes. 2 iPhones with same owner. One phone for work with different credit card details but same address.

    I'm getting an iPhone from work. I'm allowed to use it however I'd like. This will make a second iPhone. The other is up and running on my MacBook Air in iTunes.
    Question: Am I able to set up a SECOND iTunes account to use this new phone with? It will have the same street address but I can give it a different email and credit card.
    Thanks in advance.

    Ha. Wish I could speak for the world down under. But I would assume there would be no difference.

  • I accidentally cut instead of copied a folder of previously imported raw files. When I pasted the folder back I could see it in Windows Explore but not in the LR library. How can I work with these files again?

    HI,
    My daughter will often ask me to give her raw files I've taken at family events so that she can process them in her own copy of LR. (I work too slowly, apparently.) Recently I inadvertently cut instead of copied a folder. When I pasted it back I could see it in Windows Explorer but not in my LR library. I thought that re-importing the files might work, LR gave me a message that they were already imported. I expect there is a way to make the files available again in LR and would be grateful for some advice.
    thanks
    Ken

    The solutions is either of the following:
    Adobe Lightroom - Find moved or missing files and folders
    Copy the photos back into the exact same folder and folder location that they were in before
    I don't know what you actually did "when I pasted it back" ... but the bigger issue is that you shouldn't be working with these files in your operating system, period. Once you import them into Lightroom, you don't manage these files in your operating system.

  • Is there a way to get the same design as my site to work with Wordpress?

    I know BC is built with Module Tags etc, but will there be a way to build the template I bought to work with WordPress?

    Hi Mate
    There's no way to just grab a BC template and drop it into WordPress.
    The html will have to be built into a wordpress theme.
    This is fine to do it just takes some work. You can leverage off the code in the BC template to make it easier.
    If you need help making this happen let me know, my guys are Business Catalyst AND Wordpress experts
    Brett (skype = brett.stockley)

  • Why the real player download feature doesn't work with my 14.0.1 firefox? in the past (before update mozzila) it was working... now it doesn't. why?

    i had a previous version of mozzilla firefox and i updated. since then, the feature of the real player doesn't work. propably isn't compatible. although, with my internet explorer it works. i went to the settings of the real player and the only explorer it shows is Internet Explorer. The Mozzilla Firefox doesn't appear. What can i do? I unistalled and reinstalled many times the real player but it isn't its problem. help me please!

    See : https://addons.mozilla.org/en-US/firefox/blocked/i106
    [https://support.mozilla.org/en-US/kb/flash-113-doesnt-load-video-firefox
    Flash 11.3 doesn't load video in Firefox]
    thank you

  • Apple doesn't take responsability for the 3G upgrades. I can't work with it

    I updated my iPhone 3G like most of the people having an iPhone 3G, but now it runs very very slowly. I use it at work, but now it's impossible. I called Apple, and the said me it was out of guarantee. Nothing to do. So they "broke" my phone and I cannot go back. Is this legal? When they launched the upgrade it was 3G compatible, but it isn't. I am really disapointed with Apple.

    I tried everything to get my iPhone 3G up to speed. First the double hard reset, the the system restore, then the restore as new device. These all made the iPhone work better for a short while and then it would start to slow down again.
    Finally I went to Settings, General, Home Button Spotlight Search and unchecked all selections except Contacts, Applications, and Music.
    My IPhone works great agin.
    IPhone 3G   iOS 4   None  

  • How open multiple responsibilities in the same user login session in R12 ?

    Dear All,
    Can anyone help me to know how to open multiple responsibility in the same user login session in R12 ?
    Thanks..
    Edited by: G-oracle on Sep 18, 2011 11:22 AM

    Can anyone help me to know how to open multiple responsibility in the same user login session in R12 ?What do you mean by open multiple responsibilities in the same session? You can only see the menu of one responsibility at a time, so how to do you expect the application to let you see multiple responsibilities/menus in one session?
    You could open another session and this way you can access more than one responsibility at the same time.
    Thanks,
    Hussein

  • HT3819 Home Share issue: I have a Mac and Apple TV. Both are log into the same Wifi network and the same iTunes account (I can view purchased movies on AppleTV). Home Sharing shows 'ON' for both devices. BUT...AppleTV shows no computers. Itunes sidebar-no

    Has anyone else found solution to Apple devices not 'seeing' each other on Home Share?  I have a Macbook Air (new Nov'12) and Apple TV (new Dec'12). Software updated on both. Both are logged into the same Wifi network and the same iTunes account (I can view movies purchased from iTunes on my AppleTV). Home Sharing shows 'ON' for both devices. BUT...AppleTV shows no computers... and ... Itunes sidebar does not have a 'Shared' area at all.  Help please as without this functionality, my Apple TV only provides portal to purchased (i.e. Netflix,...) content which I can get from Wii or Xbox.
    I have already tried the following without success:
    1. Homeshare DID work the first day after I setup Apple TV... but the next day it has not worked since then.
    2. Powered off 30 sec then re-started (Apple TV & Macbook & iTunes login)
    3. Checked Firewall settings per Home Sharing troubleshooting guide (correct settings)
    4. Turning on Photostream in iPhoto and selecting iPhoto within iTunes and then checking to see if Photostream shows anything on AppleTV (it shows 'on' for my iTunes account but 'Zero' pictures found ... despite the >3,000 pictures showing avail in iTunes).
    I also have 'Remote" app on my iPhone 4, with Home Sharing turned on (same Wifi network)... it has a very similar message as the Apple TV and same result that despite all devices having HomeShare 'on' they cannot see each other:  "Remote will automatically find the iTunes libraries and Apple TVs that have Home Sharing turned on using the account xxxx (it lists my correct itunes account name)."

    I solved this by reset of the Wifi (unplug cable and power to both modem and wifi ... wait 60 sec ... plug in modem cable and power ... plug in wifi power and LAN to modem ... restart AppleTV and Mac ... Turn Home Share 'OFF' in iTunes then back "ON" ... it took ~60 sec for the AppleTV to pick up my Mac in computers.

  • I purchased songs from 2 different computers using itunes with the same apple id. I had 1 iPod I used for these but I just recently got an iPhone and I was wondering why it wasn't letting me put my purchased songs on my iPhone?

    I purchased songs from 2 different computers using itunes with the same apple id. I had 1 iPod I used for these but I just recently got an iPhone and I was wondering why it wasn't letting me put my purchased songs on my iPhone?

    You can transfer iTunes content from an iTunes library on a single computer only.
    Since these songs were purchased with the same iTunes account, you can download the song that is not in your iTunes library on the computer you will be syncing your iPhone with. Or you can download the song or songs direct on your iPhone.
    http://support.apple.com/kb/HT2519?viewlocale=en_US&locale=en_US

  • Prevent the same user login on multiple computers at the same time

    prevent the same user login on multiple computers at the same time

    Is there any way (currently running 2012 Servers) that we can prevent users from logging into multiple domain computers simultaneously with the same username?
    We still want them to log into those computers, just not simultaneously?
    LimitLogin utility not work in Windows 2012 server.
    Thanks.
    Babu
    Unfortunately Windows has never offered this feature as a built-in feature, but there are several possibilities discussed in these articles:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/0103b5e7-0db5-4fb4-bfe7-d7132983880a/limit-concurrent-logins-on-a-ws-2008-environment
    http://www.edugeek.net/forums/windows-server-2008-r2/61216-multiple-logins.html
    http://windowsitpro.com/windows/prevent-multiple-logons-gpos
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Is it possible to stream music to multiple sets of speakers via airplay direct from iphone4s on ios7 in the same way that you can in iTunes

    Is it possible to stream music to multiple sets of speakers via airplay direct from iphone4s on ios7 in the same way that you can in iTunes / Remote?
    I know this can be achieved by the remote app.
    Airplay functionality appears only to support 1 set of speakers at a time?

    Hockeyfanatic wrote:
    Does anyone know how or if it's possible to stream my music from the iPhone to iTunes via bluetooth or wifi? Essentially I want to share the iPhone's library with iTunes (I know one can go the other way).
    Here's why: I'd like to stream my music at work to my computer's speakers without taking the phone out of my pocket. I obviously don't have my home music collection on my company computer. And I figure if I place the phone on my desk to plug it in and play through iTunes, I could easily walk off without the phone. That would be bad (out of contact) and potentially sad (stolen).
    It seems right now the only bluetooth connection to a computer is for the remote application.
    Wait until November. Airplay/Airtunes iOS 4.2 announced for iPhone to iTunes/iTV. If you want a BT audio stream now, you can add a dongle to the PC for headset streaming.
    As far as WiFi file transfer iPhone to iTunes, you can't. There's talks on it but nothing concrete. Except JB.

  • My macbook pro is frozen, the mouse moves, but it will not click.  I have restarted and it is still the same... Can anyone help me ?

    my macbook pro is frozen, the mouse moves, but it will not click.  I have restarted and it is still the same... Can anyone help me ?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • I have photos I want to group together in one album, but can't do this because some may have the same number. How can I combine them all into one album?

    I have photos I want to group together in one album, but can't do this because some may have the same number. How can I combine them all into one album? I was trying to move several albums onto a USB drive and it stated all other files exist at this location.  They are pictures taken at different times and have the same number I guess.

    In iPhoto albums may contain photos with the same file name - iPhoto handles that just fine
    If you are exporting them to move somewhere else use the sequential file name feature of export to give each file a unique name
    LN

Maybe you are looking for

  • Page break if table is not going to completely fit on the current page

    I am working on converting the Beenfits Enrollment forms from SQR to BIP, and I am having issues getting the page breaking to happen as desired. If benefit type is grouped with a for-each group, but no matter what way I implement breaks, it breaks ev

  • Oracle.jbo.NoDefException

    Hai Otn, I have a viewobject say PopulateIllnessEmployeesVO,having a bind variable fromDate with data type Date.I am getting error while trying to set null value into bind variable. Code: populateIllnessEmployeesVO.setNamedWhereClauseParam("fromDate"

  • Placing multiple page pdf as anchored objects in text

    I am trying to place a multilple page pdf as in anchored object in text. Ideally I'd like it to flow in and size to the column width. Is this possible? Im running ID 5.5 on windows 7. Ive tried the script for MultiPageImporter-but I cant seem to get

  • No batch split performed for delivery, instead 2 items

    Hi, I have batch managed materials and during creation of the delivery, the system does not create a batch split, instead it created 2 seperate line items for each batch. This is causing problems during EDI invoicing (intracompany): the same item mul

  • I can't open .xml files from a CD using firefox. They open OK with IP, but not Firefox.

    the .xml files are on a cd, when using MS Internet Explorer they open OK, with Firefox set as defasult browser I get a message saying unable to open <filename>