Basic AppleScript Dialog: display dialog "Your text here" with icon stop buttons {"OK"} default button {"OK"} giving up after 5
'giving up after 5' will automatically close the script after the indicated interval of time has elapsed.
|
AppleScripts for Basic Printing
 The Mac 512 K, the first in the Macintosh series of computers
The first script below is for printing a document in “TextEdit”. Before running the script, you must bring the desired document to the front:
tell application "TextEdit"
print the front document with properties {copies:2, collating:true, starting page:1, ending page:1, pages across:1, pages down:1, error handling:standard} without print dialog
end tell
Most of what appears in ‘with properties {….}’ above should be fairly obvious. If you want to specify the printer, you could follow the last parameter in the list with a comma and ‘target printer:’ and the actual name of the desired printer enclosed in quotes.
If you want to use different printers in certain cases, replace ‘without print dialog’ with ‘with print dialog’

This second script, so that you aren’t required to specify the application file targeted by the print command:
tell application "Printer Setup Utility"
set the current printer to printer "Deskjet D2400 series"
(alias "Macintosh HD:Users:administrator:Documents:My Document.cwk")
end tell
Replace ‘Deskjet D2400 series’ with the name of your printer and replace ‘(alias “Macintosh HD:Users:administrator:Documents:My Document.cwk”)’ with the path to the document that you wish to print (Don’t forget to precede the path name by ‘alias’ – this is important).
The print command is part of the ‘Standard Suite’ of the Finder’s Dictionary, and so, in my next post, We will look at the remaining commands that make up the Standard Suite (there are 3). If you have questions on printing or would like to suggest a post on another AppleScript topic, contact me at: hyperscripter@gmail.com or http://twitter.com/hyperscripter or to subscribe, click the By Email link at the top of the page
|
 
HTML Guide from Peachpit Press
 iPhoto 6
Create Multiple Folders with Terminal
If you are more of a techy kind of person and are comfortable with using Terminal, here is a script you can use to easily create multiple folders:
First, for a single folder, type in: mkdir "Folder 1"
--or whatever you want to name your folder, this creates a new directory, which, in effect is a new folder.
To place multiple items in the 'Documents' folder:
cd/Users/
Administrator/
Documents
mkdir "Folder 1" "Folder 2"
"Folder 3"
To quickly create multiple folders, create a text file with the desired folder names (as many as you want) and name it something like 'folderList.txt'. Next type this in Terminal:
cat folderList.txt |xargs mkdir
Or you could create folders with the same prefix by entering:
mkdir "Invoices " {"Corporate", "Individual", "Pro-Bono"}
Digg This!!
An AppleScript to Verify a Date Run this in the Script Editor:
set dateRecord to (current date)
set defaultDate to (date string of dateRecord)
try
set apptDate to text returned of (display dialog "Enter appointment date:" default answer defaultDate buttons {"Set"} default button {"Set"})
set datetext to apptDate as text
date apptDate --if an invalid date is entered, the next dialog is aborted and it triggers the error alert below.
display dialog datetext & " is a valid date." with icon note buttons {"OK"} default button {"OK"}
on error
set alertText to "An error has occurred!"
set messageText to quote & datetext & quote & " is an invalid date."
display alert alertText message messageText as warning buttons {"OK"} default button "OK" giving up after 15
return
end try
|
 Concept Drawing for iMac prior to Production
Fun HTML Use this to add interest to your pages, but be careful, if you overdo it, it can make your page look gaudy, if not ridiculous!
Read All About It
Here's is the code as it appears above:
<p align="center" style="padding: 5px; background-color: #FFCE9C; border: dotted 5px #FFCE9C;"><marquee width=20% behavior=scroll direction=left loop=infinite> Latest Headlines... </marquee><blink>Read All About It</blink>/p>
Check out this color HTML!!!
AppleScript for Setting System Volume Copy and paste this into the Script Editor and try it out:
set defaultVolume to "3"
set volumeLevel to text returned of ¬
(display dialog ¬
"Set the system volume to (7 is the highest):"¬
default answer defaultVolume with icon note¬
buttons {"OK"} default button "OK") as integer
set volumeValues to {0, 1, 2, 3, 4, 5, 6, 7} ¬
as list
if volumeLevel is not in volumeValues then ¬
set volumeLevel to defaultVolume
tell application "Finder"
try
set volume volumeLevel
beep 2
on error errDlog
display dialog errDlog with icon stop ¬
buttons {"Abort"} default button ¬
"Abort" giving up after 15
end try
end tell
Earn Wealth on Internet
Learn Tips and Tricks to Making Money on the Internet
www.internetwealth.com
Learn How To Make Money Blogging - Blog Mastermind
Six-figure Yaro Starak Teaches You How To Set Up And Profit From A Successful Blog. Start Making Money From Blogs By Following This Step-by-step, Weekly Coaching Program
http://www.blogmastermind.com/coaching/
Seo Elite: New Seo Software!
The Grand Daddy Of All Seo Software!
Get A Top 5 Google Ranking In Under 30 Days!
http://www.seoelite.com/
Turn Your Photos Into Cash
All You Need Is A Digital Camera, A Computer And An Internet Connection To Get Started Making Extra Income Every Month!
http://turnyourphotosintocash.com/
Infinite Income Plan - Instant Wealth Guide & CDs.
Easy Money For Affiliates, Huge 8.3% Conversions On Generic Traffic. Massive 70% Commissions Plus
HyperCard AppleScript Users:
Heres an AppleScript for backing up a selected group of HyperCard files. this was used in one of my HyperCard stacks, but could be adapted for use in OSX programs with little or no modification:
send "suiteBkp(true)" to bg btn "BackupSuite"
--Use this line to call the handler below (true displays a notification dialog when the process is complete, you must have a button named bg btn "BackupSuite"):
on suiteBkp(theBoolean)
copy line 1 of field "selectedFolder" to theHFFolderPath --You'll need a hidden field named "selectedFolder" that a script (prior to the call) will place the path to the desired folder in.
tell application "Finder"
activate
set todaysDate to (current date)
set bkpYear to (year of todaysDate)
set monthlyBkp to ("Monthly Reports_" & bkpYear) as string
if exists (folder "HyperCard Backup") then
select folder "HyperCard Backup"
delete selection
end if
if exists (folder "HyperCard Backup" of folder theHFFolderPath) then
select folder "HyperCard Backup" of folder theHFFolderPath
delete selection
end if
make new folder at folder theHFFolderPath with properties {name:"HyperCard Backup"}
select {file "Appointments" of folder theHFFolderPath, ¬ file "HyperFile" of folder theHFFolderPath, ¬ file "Outstanding Invoices" of folder theHFFolderPath, ¬ file "Year" of folder theHFFolderPath, ¬ file monthlyBkp of folder theHFFolderPath, ¬
copy selection to folder "HyperCard Backup" of folder theHFFolderPath
select folder "HyperCard Backup" of folder theHFFolderPath
select file "Appointments" of folder ¬ "HyperFile Suite Backup" of folder theHFFolderPath
set name of selection to "Appointments.bkp"
select file "HyperFile" of folder "HyperCard Backup" of ¬ folder theHFFolderPath
set name of selection to "HyperFile.bkp"
select file "Outstanding Invoices" of ¬ folder "HyperFile Suite Backup" of folder theHFFolderPath
set name of selection to "Outstanding Invoices.bkp"
select file "Year" of folder "HyperFile Suite Backup" of ¬ folder theHFFolderPath
set name of selection to "Year.bkp"
set prefMonthlyBkp to (monthlyBkp & ".bkp") as string
select file monthlyBkp of folder "HyperFile Suite Backup" of ¬ folder theHFFolderPath
set name of selection to prefMonthlyBkp
select folder "HyperFile Suite Backup" of folder "The HyperFile Folder"
move selection to desktop
end tell
if theBoolean = "true" then
tell application "HyperCard"
activate
display dialog ¬ "Your backup has been saved to desktop." buttons {"Done"} default button {"Done"} with icon 129 giving up after 10
end tell
end if
end suiteBkp
more HyperTalk
 Macintosh Plus (late 1984), followed close behind the Mac 512k
 The classic Apple IIc (1981), part of a series of Apple computers that preceded the debut of the Macintosh
HyperCard Users Corner:
Here's a simple, but very useful little HyperTalk script for verifying the validity of a date entered by a user, assuming that you have a menu item "flag date..." (or whatever you choose to name it) or it could be altered slightly and placed within a mouseUp statement:
if menuItem = "Flag Date..." then
global tryDate
ask "Enter a date for your new appointment:" with the long date
if it ≠ "" and the result ≠ "Cancel" then
put it into tryDate
else
put "" into tryDate
exit doMenu
end if
if invalidDate() then
answer "The date entered is not valid!"
put "" into tryDate
exit doMenu
end if
--Here you would put the statements to execute if the entered date proves to be valid
put "" into tryDate
end if
function invalidDate
global tryDate
convert tryDate to short date
if the result = "invalid date" then
return true
else
return false
end if
end invalidDate
more HyperTalk

 Mac SE (circa 1987), was a more advanced version of the Mac Plus and had an internal hard drive.
YouTube Video Search Script:
tell application "Finder"
try
set webSearch to text returned of (display dialog "Enter YouTube Video
Search" default answer "" buttons {"Search", "Cancel"} default button 1)
open location "http://www.youtube.com/results?search_query=" & webSearch
on error theError
display dialog theError
end try
end tell
|
I gotta bookmark this internet site it seems very beneficial handy
Thanks for the sensible critique. Me & my neighbor were just preparing to do some research on this. We got a grab a book from our local library but I think I learned more clear from this post. I’m very glad to see such magnificent information being shared freely out there.
I pay a quick visit each day some blogs and information sites to read articles or reviews, however this website presents feature based content.
Yup, you are right Google is the most excellent for blogging, Google’s blog also come up to rapidly in search engines too.
I am personally really like within your blog…will get resolved accurately as soon as you can. I’m really fulfilled along with your composing competencies and also with the describe on your own site. Is that this a paid issue or did you personalize it your own? Anyway carry on the excellent high quality text, it’s rare to determine a wonderful weblog similar 1 today..
Sup, I believe your wordpress blog could possibly be having internet browser support matters. While i take a look at your website in Trip, it seems fine though when opening in The web Traveler, it possesses several overlapping. I simply wished to give you a quick heads over! Other in that case which often, superb site!
Say thanks a lot for supplying everyone shockingly marvellous possibility to learn important reviews from here. It’s always so awesome also jammed with entertaining for myself personally and my place of work partners to search your particular web site for a least thrice in a week to learn throughout the new stuff you may have. And then, I’m just always happy for the putting hints yourself allow. Designated 2 guidelines with this put up are truly the most amazing I’ve ever had
Hi there I am so thrilled I found your blog page. A quick question if you don’t mind. I’m really enjoying the design and layout of your site. It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme? Superb work!…
I’m really enjoying the design and layout of your site. It’s a very easy on the eyes which makes it easy to read for me to come here and visit more often. Did you hire out a designer to create your theme? Superb work!…
I wanted to adhere to down and allow you to have a clue how a great deal I actually much-loved finding your internet web-site today. I would ponder over it an authentic recognize to operate within my place of work and then use the ideas offered on your own web site and as well be involved in visitors’ feedback in this way. Will need to a position connected with customer article writer turn out to be sold at your last, you need to figure out. homes for rent during boca raton
you’re really a good webmaster.The site loading speed is incredible.It seems that you’re doing any unique trick.Also, The contents are masterwork.you have done a great job on this topic!
I really appreciate this post.I’ve been looking everywhere for this! Thank goodness I found it on Bing.You’ve made my day! Thank you again
This one is an inspiration personally to uncover out much more related to this subject. I need to confess your data extended my sentiments in addition to I’m going to right now take your feed to stay updated on each coming weblog posts you might probably create. You are worthy of thanks for a job perfectly done!
Hey – nice weblog, just trying around some blogs, appears a fairly nice platform You Are using. I’m at present utilizing Drupal for a couple of of my websites but seeking to change one in every of them over to a platform very a lot the same to yours as a trial run. Something in particular you’d recommend about it?
I’m delighted that I have noticed this weblog. Lastly something not a junk, which we undergo extremely frequently. The website is lovingly serviced and saved as much as date. So it should be, thanks for sharing this with us.
wonderful points altogether, you just gained a brand new reader.What would you suggest in regards to your post that you made some days ago? Any positive?
How soon will you update your blog? I’m interested in reading some more information on this issue.
Nice to be visiting your blog again, it really has been weeks for myself. Well, here is the story that I’ve been waited for so long.
Say thanks a whole lot for granting everyone shockingly marvellous chance to learn to read crucial critiques from here. It’s always so amazing also filled with exciting for myself personally and my place of work partners to look your specific business at a least thrice within a week to learn to read through the new items you will have. And of course, I’m just always satisfied for placing guidelines everybody provide. Special 2 pointers in this submit are extremely the foremost amazing I’ve ever had
I bought some intersting info here. I think that if more people thought about it that way, they’d possess a better time obtain the hang ofing the matter.