Apple Script Studio Password

Hello,
Is there a way of having a text box in applescript studio but when you type the correct password, you have more buttons on your window?
Thanks!

Sample code:
on action theObject
tell window 1
if (((name of theObject) is "textfield01") and (((contents of text field "textfield01") is equal to "dev_sleidy"))) then
set (enabled of (button "button01")) to true
set (enabled of (button "button02")) to true
end if
end tell
end action
... based on a window with a text field named 'textfield01' and two buttons (named 'button01' and 'button02'); and, the text field set to 'NSSecureTextFiled' via 'Interface Builder's 'Inspector's (popup menu set to 'Custom Class's) panel.
  Mac OS X (10.4.2)  

Similar Messages

  • Apple Script Studio "Visibility"

    Hello,
    I am trying to get the status of image views (if they are visible or now) and I tried several different methods -- none seem to work. For example
    if visible of image view "fnamei" is true and visible of image view "lmanei" is true and visible of image view "agei" is true then
    set visible of button "done" to true
    end if
    (*Or Maybe*)
    if "fnamei" and "lnamei" and "age1" then
    set visible of button "done" to true
    end if
    Any other suggestions?

    Solution found.

  • Sudo command in apple script? Encrypting apple script?

    Hi,
    1. I need a way to enter my root user password in applescript (when you run sudo in terminal you are prompted for a password, this is not so in apple script. So how do you tell apple script what the password is?)
    2. Can i encrypt my applescript with a password so that only i can open it?
    Thanks,
    Patrick.

    # 2 works great, #1 not so much... ive been trying
    tell application "Terminal"
         do shell script "su"
    end script
    any way i can auto enter my password following "do ....Su"?

  • Get AD group membership for apple script

    Hello All,
    I am to create an app that mounts certain network folders with an apple script:
    tell application "Finder" to close every window
    tell application "Finder" to eject (every disk whose local volume is false)
    tell application "Finder"
      tell Finder preferences
      set desktop shows connected servers to true
      set desktop shows external hard disks to true
      end tell
    end tell
    do shell script "killall Finder"
    display dialog "Please enter your network username:" default answer "" with title "Network Login" with icon note
    set username to text returned of result
    display dialog "Please enter your network password:" default answer "" with title "Network Login" with icon note with hidden answer
    set userpass to text returned of result
    mount volume "smb://" & username & ":" & userpass & "@192.168.1.10/teacherread"
    mount volume "smb://" & username & ":" & userpass & "@192.168.1.10/teacherwrite"
    mount volume "smb://" & username & ":" & userpass & "@192.168.1.10/home/" & username
    mount volume "smb://" & username & ":" & userpass & "@192.168.1.10/steps"
    The users are in Active Directory and are in certain groups
    I would like to go one step further and add: if in group teachers, and officestaff: mount teacherread, finance etc
    The macs are not bound to the domain
    Thanks in advance for your help
    Daniel

    Hi Again,
    Another way to look at it might be if error 5014 (don't have permission) try next line
    try
    mount volume "smb://" & username & ":" & userpass & "@dc1/teacherread"
    *if result is error number 5014 goto next command
    end try
    *try
    mount volume "smb://" & username & ":" & userpass & "@dc1/teacherwrite"
    *if result is error number 5014
    end try
    *try
    mount volume "smb://" & username & ":" & userpass & "@dc1/home/" & username
    *if result is error number 5014
    *end try
    *Not sure on syntax
    Thanks
    Daniel

  • This one into a apple script

    How can I put this into an apple script
    sudo ditto -rsrc \
    /System/Library/User\ Template/English.lproj \
    /Users/admin

    Its been a long whiIe since I used applescript but, I believe you use the command:
    do shell script
    and then your script underneath.
    "sudo ditto -rsrc \"
    "/System/Library/User\ Template/English.lproj \"
    "/Users/admin"
    you may have to add something like this into it.
    user name "AdminUsername" password "AdminPassword" with administrator privileges
    Again its been a while but its a start

  • Automator workflow to an apple script

    Hello,
    i have a few problems with the automator utility:
    1. my automator work flow is to open an application and type a password.
    the problem is when i recored and i'm typing the password, after i'm running the workflow seems that its not possible to type password, is there a way to type password while recording?
    2. i have an automator workflow and i wish to convert it to an apple script.
    after i've copy paste it to the apple script editor it seems to be the workflow but when i running the
    script it not running.
    please help...
    Rafi.

    Since you're using Mail, you might be able to have Mail do it.
    You can set up a rule in Mail in its preferences to match an email with unique characteristics, such as certain content or a certain subject exactly. You might want to add a few conditions and "match all" to make sure you don't accidentally match something else.
    Anyways, you choose to have the rule run an AppleScript. I haven't tested it by referencing an Automator workflow, but it might work. You might try a quick test first with a simple workflow.
    You'd have to be logged in and have Mail automatically check for email, perhaps every minute or every five minutes. If you don't want to be logged in, likely you'll need to use a web page, like you suggested. I'm not sure what you need to do for that to work.

  • Writing apple script to perform actions on specific network shares/servers

    Hi Everyone,
    I'm new to posting to this forum, but had a few simple questions about writing Apple Script. I've created a few network shares on our home network, and wrote an apple script to automatically mount the shares upon login. However, there's 2 things I'm missing:
    1. how to add a password feild to the script, along with the username.
    2. how to make the resulting application from the script (or the script itself) ignore the errors that result when i am not at home, and the server is not available (basically I'm saying I don't want to see those errors pop up)
    3. I also don't want to see the error from the network agent, about the server being unavailable.
    Any help with this would be greatly appreciated. Here is my script so far:
    tell application "Finder"
              mount volume "smb://mediaserver/automatically add to iTunes/" as user name "Rocco Fiorentino"
              mount volume "smb://mediaserver/shared media" as user name "Rocco Fiorentino"
    end tell
    Thank you in advance for any assistance. Have a great day!

    John Holley NZ wrote:
    More importantly I have found that the names in the list don't match the descriptions!
    Let's take one update for example, 061-3405 Pro Application Update 2007-01.
    Although this completely defies logical explanation, If you resist sorting the list by anything (i.e. the default random order), the descriptions will in fact be correct. This is something I see from time to time with new Excel users when they try to sort related columns for the first time and forget to select all of the relevant data, but I am totally perplexed as to why this is happening here. It seems as though the descriptions are not actually part of the file, and as such, cannot be sorted (or don't follow around the original file).
    For example, on my server, QuickTime Broadcaster 1.5 is followed by Logic Express 7.2.1. If I sort by name, the list starts with an Airport updater, but the first 2 descriptions remain the SAME (QT and Logic)! As I previously stated: this defies all logic and reason.
    For me, this seems to be a cosmetic problem; the software update server is successfully serving updates to clients. It is, however, annoying.
    Something seems seriously screwed here! I will keep digging but this does not fill me with confidence.
    John

  • Search String in PDF file - MAC Apple Script

    I want to write a Script for Searching String in a PDF File.
    I start with Apple Script and the last 2 days i searching to eliminate the error in the Script.
    set Datei to choose file
    tell application "Adobe Acrobat Professional"
    open Datei
    activate
    find text Datei string "01.07.08"
    end tell
    The script will stopped in line from find text.
    The scrippt will be load a PDF file, activate it an i want to search "01.07.08" and marked it.
    Please help me.
    Thanks michael

    Right, I think I've got on to something here:
    1. I must not have been able to search this particular pdf document in the past, despite what I think I remember.
    2. When I select the Yamaha TDM pdf in Finder and show the Inspector window (CMD-opt-I) I see under "More Info" that Security Method is 'Password Encrypted'. In fact, try to select and copy some of the text: you can't. BUT: print the whole file to a new PDF, then save that new pdf file and use it for searching, ... ta-da! it works!
    I was a bit disappointed in ColorSync's inability to open the file and then Save it As... In the Tiger days, I had used this work-around: I took a password encrypted pdf document, opened it in ColorSync utility (in Applications/Utilities) and saved it under a new filename somewhere on the disk, and this process sort of neglected to cloak it up in its password-protection.
    Oh well, I suppose I can use the Print to PDF method which I describe just here to achieve the same goal. Until, that is, the big-wigs in the publishing companies and Apple are alerted to this fact and strip the 'functionality' from the print process.
    Thanks for posting.

  • My apple ID and password, recognized through out the Cloud, is not being recognized in the itunes store. I am signed into itunes.When I want to change something in my account, the sign in prompt comes up and doesn't recognize my PW

    My apple ID and password, recognized through out the Cloud, is not being recognized in the itunes store. I am signed into itunes.When I want to change something in my account, the sign in prompt comes up and doesn't recognize my PW

    Solved the problem. I had to allow cookies for safari and it run - as here: Re: itunes keeps asking for my apple id password. it's NOT entered incorrectly.

  • Sending email using apple script...

    I have created a watch folder using apple script that when a file is dropped on it, it automatically opens, formats, and sends out a custom email.
    What I don't understand is, how can I include multiple variables in the "content" section (also known as the body section of the email)? I want to put custom type in the content section that says "There is a file awaiting your review." I also would like to choose an email signature from my mail program to use. Third, I would like to include the name of the file that is being sent....
    I found that by doing {content:iteminfo} I could get the file name...If I do {content:"There is a file awaiting your review."} I could get the custom type I wanted....
    BUT, I can't figure out how to get BOTH of them together in ADDITION to adding a custom email signature...
    I know there are some really smart people out there...Any tips?

    I can't figure out how to get BOTH of them together
    This is just standard AppleScript text concatenation with the &:
    ... {content: "There is a file awaiting your review: " & iteminfo}
    Here you can see I'm concatenating a literal string (enclosed in quotes) and a variable. You can extend this ad infinitum.
    As for the signature:
    tell theMessage to set message signature to signature "My Sig"
    (which assumes you have a signature named 'My Sig'. Adjust as necessary.

  • I had to change my Apple ID and password, but now when I try to download anything new it says my Apple ID is disabled.  What can I do to fix this?

    I had to change my Apple ID and password.  Now when I try to download or buy an app it says your Apple ID is disabled.  How can I fix this?

    If it says "This Apple ID has been disabled for security reasons", then you will just need to change you password by following these steps: http://support.apple.com/kb/ts2446
    If it does not says "...for security reasons" you will have to contact the iTunes Store to have your account 'un-disabled' http://www.apple.com/support/itunes/contact/
    Good Luck.

  • I can't activate my iPad and I'm sure i am using the correct apple id and password but when i press net it says it cannot be used to unlock this iPad

    i can't activate my iPad and I'm sure i am using the correct apple id and password but when i press net it says it cannot be used to unlock this

    You can try to figure out which Apple ID/email address and/or password you used to activate it by going to http://iforgot.apple.com
    If you can't, you'll need to contact Apple Account Security with your proof of purchase. 

  • A MacBook Air was reported stolen From a room at my hotel that belong to a guest. I request a apple Id and password from the guest in order to track it though iCloud, when I login into the account the MacBook was not their, however I saw other device. A f

    A MacBook Air was reported stolen
    From a room at my hotel that belong to a guest. I request a apple Id and password from the guest in order to track it though iCloud, when I login into the account the MacBook was not their, however I saw other device. A few days has past then the MacBook appear. How does that happened, please explain?

    For a stolen Macbook to appear in iCloud - the person who stole it must turn it on.
    You can't track something that's turned off.

  • TS1424 I downloaded a song and it says my computer is not authorized to play it, but when I put in my apple id and password to authorize it it tells me this computer is already authorized! What do I do?

    I downloaded a song from itunes and it says my computer is not authorized to play it, to authorized enter your apple id and password so I did, then it said that this computer was already authorized, but it still won"t let me play the song! What do I do?

    Apparently not!! I am NOT happy about it either! I had always bought my mp3's from walmart.com (until they quit doing it) & ANY time I had a problem, they had it corrected in less than 5 minutes! Apple is a large enough company, that they should have an EASY to find support system. Having to post on here, WAITING for someone who MIGHT know how to fix it, is aggrevating!! I WILL NOT BE BUYING ANY MORE MUSIC FROM ITUNES & WILL BE GOING TO ANYTHING OTHER THAN AN APPLE PRODUCT!

  • When I try to sign in with my Apple ID and password, it says I can not sign in.  To check my network connection and try again.

    When I try to sign in with my Apple ID and password, it says I can not sign in. To check my network connection and try again.
    I am connected to my home wifi network. Why can't I sign in??

    Not sure, but iAd Producer probably has nothing to do with this.
    Did you try posting in a forum that discusses iPhone, or FaceTime, or networking?
    I searched and this looks like the best fit : https://discussions.apple.com/community/iphone/using_iphone
    -M

Maybe you are looking for