50+ TOP AppleScript Interview Questions and Answers [UPDATED]

  • Question: Can I Change The System Date Using Applescript?

    Answer :

    Currently, you cannot change the system date and time using AppleScript alone. You could create a script to control the date and time through the Date and Time Control Panel using Prefab Player. You could also do this using QuicKeys or KeyQuencer.

  • Question: How Can I Stop A Script From Running?

    Answer :

    If you are running a script from the Script Editor, you can type command-period to stop the script or click the Stop button. If the script running is a droplet, you can also type command-period. If you have a stay open script that won’t quit, you can type shift-command-Q to stop it.

  • Question: How Do I Learn Applescript?

    Answer :

    • Probably the best approach to learning AppleScript is to buy one of the available AppleScript books or the Scripting Kit and work through the scripts in the book. Constantly fooling around with AppleScript also helps. Because Apple event and object model support in third party applications isn’t always consistent, you will quickly discover that what works in one program may not work in another. Experience is the best teacher in these cases.
    • Another avenue for learning how to script is to study the scripts that others have written. Look at the example scripts that are supplied with the Scripting Kit. You can also watch the progress of Apple events in the Log window (AppleScript 1.1) to learn more about how scripts work. If you are using one of the third party script editors (Scripter or Script Debugger), you can watch the variables as they change.
    • If you are working with an application that is recordable, you can record actions in the application and then study the scripts that it produces. Since the application is “writing” the script, you will get a better idea of the commands that it understands and how they should be scripted.
    • Of course, you can always join the MACSCRPT mailing list, read all of the messages, and run all of the scripts that are posted and discussed. This is a bit more interactive than reading a book.
  • Question: How To Copy From One Script To Another Script In Qtp?

    Answer :

    Set obj=CreateObject(“Scripting.FileSystemObject”)

    obj.CopyFile “C:est.txt”, “D:est.txt”.

  • Question: I Compiled My Script And Some Of The Script Changed.

    Answer :

    Typically, scripts only change it they have properties that change. The script may also change if it was originally compiled under AppleScript 1.0 and then run under 1.1. [From Jon Pugh]

  • Question: Is Applescript Available On Windows?

    Answer :

    Although there was some early indication from Apple that AppleScript would be ported to Windows, that goal seems to have been put on hold.

  • Question: Is It Possible To Pass Optional Argument To Function In Apple Script?

    Answer :

    Visual Basic is a standalone tool for creating separate  software components such as executable programs, COM  components and ActiveX Controls. It is useful when  building a specialised solution from scratch. VBA offers  the same powerful tools as Visual Basic in the context of  an existing application and is the best option for  customising software that already meets most needs.  VBScript is a lightweight version of the Visual Basic  language designed.

  • Question: Some Organizations Block Flash Movies From Being Received Through The Internet?

    Answer :

    While this is partly motivated by fears of Flash viruses and Flash hackers, the greater motivation is disciplining staff. Many managers of private companies do not want their employees playing Flash games at their office computers, so they will ban Flash movies at work through technical blockers on the network. Do not be surprised if your employer chooses to implement a ban of Flash at your office.

  • Question: What Are Scripting Additions?

    Answer :

    Scripting Additions are code resources that add commands and functions to the AppleScript language. They are similar to HyperCards CMDs and XFCNs. The reside in the Scripting Additions folder inside of the Extensions folder. Once installed in the Scripting Additions folder, they behave like a command in the AppleScript language.

  • Question: What Are Some Organizations Block Flash Movies From Being Received Through The Internet?

    Answer :

    While this is partly motivated by fears of Flash viruses and Flash hackers, the greater motivation is disciplining staff. Many managers of private companies do not want their employees playing Flash games at their office computers, so they will ban Flash movies at work through technical blockers on the network. Do not be surprised if your employer chooses to implement a ban of Flash at your office.

  • Question: What Are The Differences Between Visual Basic, Vba And Apple Script? When Would It Be Appropriate To Use One As Opposed To Another?

    Answer :

    Visual Basic is a standalone tool for creating separate software components such as executable programs, COM components and ActiveX Controls. It is useful when  building a specialised solution from scratch. VBA offers  the same powerful tools as Visual Basic in the context of  an existing application and is the best option for  customising software that already meets most needs.  VBScript is a lightweight version of the Visual Basic  language designed.

  • Question: What Is Applescript?

    Answer :

    AppleScript is a scripting language for the Macintosh. It is an English-like language that has been compared to batch files on PCs, but it is more like UNIX shell scripts in its power and flexibility.

  • Question: What Is Flash, Is It The Same As Adobe Flash?

    Answer :

    Flash was formerly called “Macromedia Flash”, but is now relabeled as “Adobe Flash” since Adobe purchased Macromedia software in 2005.<br><br>Flash is streaming animation for web pages. Sometimes Flash is a portion of an html web page, and sometimes a web page is made entirely of Flash. Either way, Flash files are called “Flash movies”. These are special .swf format files that beam to your web browser screen as you watch them.

  • Question: What Is The Equivalent Of Apple Scripts On Error In Jscript ?

    Answer :

    Apple Script uses the try/catch construct to trap, handle, and throw exceptions. This is one area where JScript is superior to apple Script.

  • Question: What’s The Maximum Size Of A Script?

    Answer :

    Script Editor uses the Mac’s Text Edit toolbox routine which has a limitation of 32k. (Script Editor’s actual limit is 30,000 characters.) SimpleText, HyperCard and some other programs have the same limitation. Script Debugger supports scripts greater than 32k.

  • Question: Which Is The Default Data Types In Apple Script?

    Answer :

    The data type Variant no longer exists. It has been replaced with the type Object. Object types must be  explicitly cast to other primitive data types.

  • AppleScript Questions and Answers for Interview

    Preparing for AppleScript job interview and whether you’re experienced or fresher & don’t know what kind of questions will be asked in AppleScript interview, then go through the above 50+ Top AppleScript Interview Questions and Answers to crack your job interview.