Cell Phone Forums > Cell Phone Manufacturers > Apple » AppleScript: Finder commands


Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 12-29-2007, 04:37 AM
cellphoner's Avatar
RSS Bot
 
Join Date: Feb 2007
Posts: 3,933
AppleScript: Finder commands

Filed under: Features, How-tos
Now that you've mastered the tell command, it's time to introduce some of the other AppleScript commands that you may encounter.

Location command
This command will allow you to open a specific location (either on your Mac or on a web server). This command is most often used with the Finder. For instance, if you wanted to open "www.tuaw.com," then you would type:

tell application "Finder" to open location "http://www.tuaw.com"

Remember, when dealing with an application always include quote marks around the application name. When you're typing a URL, be sure to include the prefix (HTTP:, AFP:, FTP:, etc.) and include quote marks around the URL. You can also tell a specific web browser to open the URL:

tell application "Safari" to open location "http://www.tuaw.com"

However, if you use the Finder version of the script, it will open your default browser.Continue reading AppleScript: Finder commands


Permalink | Email this | Comments


</img> </img>


More...
Digg this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Automatic Translations made by Google:
Albanian Arabic Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Indonesian Italian Japanese Korean Latvian Lithuanian Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swedish Taiwanese Thai Turkish Ukrainian Vietnamese