Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Simplification ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 1647 of 1674
Post > Topic >>

Simplification for Text-apps

by Jo_y <jo_y@[EMAIL PROTECTED] > Jul 24, 2008 at 03:37 PM

Let's save time with my little script, where purpose is to save
Do***ents of Text-applications with the title as name in front window
of Finder (you can do 2 actions in one step, instead to confirm
separately 100 times which name, which path to choose)

--Test

tell application "System Events"
        set x to name of every process whose frontmost is true
        set x to x as text
end tell
tell application "Finder"
        set y to (folder of front window) as text
        set the_path to (y & "Test")
end tell


tell application x
        activate application x
        try
                set i to window 1
        on error
                set i to do***ent 1
        end try
        try
                save i in the_path
        on error the error_message number the error_number
                display dialog "Error: " & the error_number & ". " &
the
error_message buttons {"Cancel"} default button 1
        end try
end tell


--Unfortunately it's not functional, simple what it is.
 




 6 Posts in Topic:
Simplification for Text-apps
Jo_y <jo_y@[EMAIL PROT  2008-07-24 15:37:18 
Re: Simplification for Text-apps
Jo_y <jo_y@[EMAIL PROT  2008-07-26 04:35:44 
Private Message
   2008-07-26 11:26:13 
Re: Simplification for Text-apps
Jo_y <jo_y@[EMAIL PROT  2008-07-27 03:02:16 
Re: Simplification for Text-apps
Jo_y <jo_y@[EMAIL PROT  2008-07-29 06:16:21 
Re: Simplification for Text-apps
Jo_y <jo_y@[EMAIL PROT  2008-07-29 11:26:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 8:42:03 CST 2008.