Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Using the info for and path to commands, write a program to get information about your Documents folder.
Using the info for, path to application commands, and the fact that short version is a property contained in the record returned by the info for command, write a program to find the version of Script Editor you are running.
Modify the Get Info program presented in this chapter to also display the file extension and whether the selected file is an alias.
Using the list folder and the path to commands, write a program to add up the size of all the files in your Documents folder.
Using the list folder and the path to commands, write a program to find the file with the oldest creation date in your Applications folder (ignore any subfolders).
Write a program that allows the user to update the list in the ListFile101 file you created in this chapter. First, have the program read the list in from the file; then prompt the user to enter information for a new city and its respective population (use two display dialog commands for this). Add the new city to the end of your list and write the updated list out to the file. Write a separate program to read the list back in to verify that it was updated with the new city.
Modify the last version (version 4) of the population program from Chapter 6 so that the population data is read from a file when the program begins execution. As before, have the user enter a city; then look up the city in the list and display its population.
Write a simple file copying program. Let the user pick the file to be copied. Then allow her to choose a name for the new file. After that, copy the contents of the selected file.