Lost my apple script editor
During a recent reinstallation of my OS, I transferred some of the contents of the previous system folder to the new folder. Inadvertently I erased the folder for the apple script editor with an empty folder; does anyone know how I can get that single folder/application without reinstalling everything? I asked a friend to attach his scripteditor to an email to me, but he was unable to do that. Thanks for suggestions.
I found the answer: http://www.macupdate.com/info.php/id/6812 Pacifist, a shareware application
(developer:mailto:[email protected]) that allows you to extract one item from an installation disk.
Similar Messages
-
Hi Everyone,
I was just wondering that if I have created a script using Apple script recorder button and it does what I have wanted. Now I was just wandering that how would I save it so that when I click on it, script will run and do what it suppose to do?
Thanks,Hi Colin,
Thanks for your reply. I was able to record some of the action and when I have tried to execute that using apple script editor and it works fine. But once I saved that script using .scpt extension and then tried to click on it then it just opened the script editor but did not run without click execute. Do you know why?
Thanks, -
Apple Script Editor no longer available
Since updating to OS X 10.4.5 the AppleScript folder has been left empty in the Applications folder so consequently it is no longer possible to use AppleScript Editor. I did try to locate the AppleScript Editor app in the hard disk to no avail. Any suggestions or hints as to what might have happened would be appreciated. Thanks
This is a follow up to the AppleScript Editor problem some people have experienced since the last Mac OS X update. More details available here: http://discussions.apple.com/message.jspa?messageID=1988758#1988758 .
Powerbook G4 17" Mac OS X (10.4.5)
Powerbook G4 17" Mac OS X (10.4.5)Hi, dott.
I uprgaded to 10.4.5 weeks ago: no problems with the contents of the Macintosh HD > Applications > AppleScript folder's contents.
When files go missing unexpectedly, this can indicate disk directory corruption. I suggest you begin troubleshooting using the process specified in my "Resolving Disk, Permission, and Cache Corruption" FAQ. Perform the steps therein in the order specified.
Good luck!
Dr. Smoke
Author: Troubleshooting Mac® OS X
Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
I may receive some form of compensation, financial or otherwise, from my recommendation or link. -
Apple Script Editor | Background Process | Question
Hi,
I recently found this chat site called www /dot/ omegle /dot/ com (The service randomly pairs users in one-on-one chat sessions where they chat anonymously using the handles "You" and "Stranger".) - and i was wondering how i could create a copy and paste routine to run in the background on safari while i do other stuff on Google Chrome or whatever.
Here is an example of my script so far:
repeat 10000 times
delay 4
tell application "System Events" to keystroke "v" using command down
delay 0.1
tell application "System Events" to keystroke return
delay 1
tell application "System Events" to keystroke (key code 53)
delay 0.5
tell application "System Events" to keystroke (key code 53)
delay 0.5
tell application "AppleScript Editor" to activate
tell application "System Events"
key down {command}
keystroke (key code 14)
key up {command}
end tell
tell application "System Events"
keystroke "r" using {command down}
tell application "System Events"
keystroke "r" using {command down}
tell application "Safari" to activate
end tell
delay 3
tell application "System Events" to keystroke (key code 53)
delay 4
tell application "System Events" to keystroke "v" using command down
delay 0.1
tell application "System Events" to keystroke return
delay 1
tell application "System Events" to keystroke (key code 53)
delay 0.5
tell application "System Events" to keystroke (key code 53)
delay 0.5
tell application "AppleScript Editor" to activate
tell application "System Events"
key down {command}
keystroke (key code 14)
key up {command}
end tell
tell application "System Events"
keystroke "r" using {command down}
tell application "System Events"
keystroke "r" using {command down}
tell application "Safari" to activate
end tell
delay 3
tell application "System Events" to keystroke (key code 53)
end tell
delay 0.1
tell application "System Events" to keystroke (key code 53)
end tell
end repeatAnyone?
I'm not trying to spam anybody - i just wan't to promote my band. -
Apple Script Editor, "Expected end of line but found identifier" Error
Hello, I'm trying to automate an Application I have, called Self Control, since I have ADD and easily get distracted, and what I want to do is for my computer to automatically set the application up, but to do this, I need a script, which I have already done, but get this error, can someone help me fix this script?
(the error happens once I click on "run", it tells me as follows: "Syntax Error", followed by, "Expected end of line but found identifier".
on run argv
set defaultTime to 1440
try
set myTime to item 1 of argv as number
on error
set myTime to defaultTime
end try
tell application "Usable Keychain Scripting"
tell current keychain
set myPass to (password of first generic item ¬
whose name contains "SelfControl")
-- eliminate invisible characters, or "gremlins," from password
set x to quoted form of myPass
set myPass to do shell script "echo " & x & " | perl -pe 's/[^[:print:]]//g'"
end tell
end tell
tell application "SelfControl" to activate
tell application "System Events"
tell process "SelfControl"
tell slider of window "SelfControl" to set value to myTime
click button "Start" of window "SelfControl"
end tell
tell window 1 of process "SecurityAgent"
with timeout of 15 seconds
repeat
set tryAgain to false
try
set value of text field 2 of scroll area 1 of group 1 to myPass
on error
delay 1
set tryAgain to true
end try
if not tryAgain then exit repeat
end repeat
click button 2 of group 2
end timeout
end tell
end tell
end run
I'm no coding expert, but your help would be greatly appreciated. I know that once the script is done I can automate it with Calendar, or even Quicksilver, I just need help with the script.
Thanks in advance!This is a pain with Applescript.
Could be a missing " or ' . I didn't notice this problem.
Use (* and *) to comment out lines to find where the problem lays. Start big then go smaller and smaller until you find the problem line. Search internet for examples of the line in question. -
Apple script 2.2
The apple script editor will not allow this function to be written, =SUMIF(range,criteria,sum_range)
when the criteria is a text word enclosed in double " ". The editor comes up with an error.
If you delete the double " " in apple script editor and run the script in mircosoft Excel, the function
appears as written. But you must go to each cell and double " " the text word of the function before
you get a result from the function.
In earlier versions of applescript you could enclose the text word with "" "" and make it work
Is there some way around this problem ?I assume you're trying to set the formula of an excel cell using applescript? if you have a text string that has literal quotes in it, you need to escape them with a backslash. e.g.
set aPhrase to "This is a \"phrase\" with \"literal quotes\""
see how that works? -
Automator workflow to an apple script
Hello,
i have a few problems with the automator utility:
1. my automator work flow is to open an application and type a password.
the problem is when i recored and i'm typing the password, after i'm running the workflow seems that its not possible to type password, is there a way to type password while recording?
2. i have an automator workflow and i wish to convert it to an apple script.
after i've copy paste it to the apple script editor it seems to be the workflow but when i running the
script it not running.
please help...
Rafi.Since you're using Mail, you might be able to have Mail do it.
You can set up a rule in Mail in its preferences to match an email with unique characteristics, such as certain content or a certain subject exactly. You might want to add a few conditions and "match all" to make sure you don't accidentally match something else.
Anyways, you choose to have the rule run an AppleScript. I haven't tested it by referencing an Automator workflow, but it might work. You might try a quick test first with a simple workflow.
You'd have to be logged in and have Mail automatically check for email, perhaps every minute or every five minutes. If you don't want to be logged in, likely you'll need to use a web page, like you suggested. I'm not sure what you need to do for that to work. -
Apple Script / Script Editor to use the mouse
Hi
Can you write a script in script editor to move the mouse to specific coordinates and click. If so could you please write a simple script to move the mouse to coordinates {800, 310} and then click a button. Second is there a way to select an account and log in. If so can you please write a few lines to show me.Thanks.Hi Carol,
You need System Preferences>Universal Access>"Enable Access for Assistive Devices" checked for this to work, and of course if it isn't a Finder button you'd change something...
activate application "Finder"
tell application "System Events"
tell process "Finder"
click at {800, 310}
end tell
end tell
Or if you want to use Terminal...
http://www.hamsoftengineering.com/codeSharing/MouseTools/MouseTools.html -
I need to Apple Script so mail closes at login and doesn't stay open. I lost it somehow. Anyone have it?
To hide Mail when it is open:
tell application "System Events"
set visible of process "Mail" to false
end tell
To quit Mail:
tell application "Mail"
quit
end tell
A delay statement, such as 'delay 2', can be placed at the beginning of each script if the event is being triggered too fast. In any case, put the script text into the Script Editor in the /Applications/AppleScript/ folder, save it as an application, and add the script to the list of login items for your account in the Accounts pane of System Preferences.
(20280) -
Links to launch Script Editor no longer work
Links to launch Script Editor no longer work.
I don't know, I just use a very simple Applescript to enclose the clipboard in tags that allow the user to launch Script Editor from the browser:
set the clipboard to "<a href=applescript://com.apple.scripteditor?action=new>Click here to launch Script Editor</a>.
<pre class=COMMAND>" & return & (the clipboard) & return & "</pre>"
And it wraps the script on the clipboard on PRE tags so the structure is preserved. Neither of those work now. -
A program which used to open in Classic now opens in Script Editor
I am using an old web design program by Symantec called Visual Page 1.1.1. It has worked fine for several years, but yesterday I opened it and instead of opening in Classic, it tried to open in "Script Editor" in OSX. Classic never opened at all. I have tried reinstalling it but the same problem occured. I tried using "Open with" Classic on the Info page, but Classic is greyed out. Can anyone help? I am starting to import the pages into a new program (Freeway) but this will take forever. I would like to still be able to work with this program. Thanks for any assistance. (I called Symantec and the program is too old for them to help with.)
And Get Info shows it as a Script Editor document ? rather than Classic Application ?
I had this about a year ago, but for the life of me, I can't remember what I did to fix it. I may have posted here when I got desperate. A search in discussions for Script Editor and Classic may come up with something.
Edit:
===
http://discussions.apple.com/thread.jspa?messageID=4762745� -
I use Adobe Photoshop CS4_Bridge _Photo Downloader to import images from CF Cards into my 11" Mac Book Air. I have an issue with the Text files
that seem to accompany each and every image that I do not need. How do I stop Apple Script (which I assume is the culprit in this case) from interferring with this process.Your iWeb Site is stored not on your iDisk, but on a file named Domain.sites in your ~/Home/Library/Application Support/iWeb/ Folder.
If , for whatever reason, you wipe your HD and/or lose this file (Get a new computer, Re-Install your OS, Stolen Laptop, Crashed HD, Etc.) without backing-up your Domain.sites file then you will have to re-build your iWeb sites from scratch again.
Of course you can edit your Published HTML files in a different program such as Dreamweaver or even Text Edit. You just can't edit Published HTML files in iWeb. Not at this time at least.
Use iWebBackup to backup your Domain file to a Blank CD or DVD. Backing up your Domain file to another folder on your computer is not fully backing it up. If your computer gets stolen you still lost the file but if you have your Domain file burned onto a CD you have a backup!
Download iWebBackup Here
You can use iWebExtender to automatically consolidate your files into one folder and delete multiple images.
http://iWebFAQ.com -
Problem opening a sheet music file on Script Editor
I have sone sheet music files but when I try to open them I get an error message saying that the dictionary of the extension or application is not scriptable and then I get another message saying that the Script Editor cannot open files in the Script Editor Document format. I have no idea what that means. I think they're MUS files, if that helps at all. Thanks.
Hi tracy,
This forum is for discussion qnd questions regarding Apple's productivity application AppleWorks.
Your question will have a better chance of a knowledgeable response in one of the other forums on this site, or on a forum elsewhere for the application that was used to create these files.
The filename extension .mus is usually a Finale Music Score, created by one of the Finale Music family of applications. You can find out more about Finale using the link in this post.
Regards,
Barry -
Please help!! Using Apple Script in Automator for Quicktime
I would like to add some metadata to a batch of quicktime movies and then make the files unable to be altered and re-saved so that I can post them on the web. If I open a movie in quicktime and run the following apple script I can then perform save as of movie A into movie B and movie B cannot be altered.
tell application "QuickTime Player"
set saveable of movie 1 to false
-- save self contained
end tell
I would love to be able to do this on a batch level in automator however I cannot figure out how to pass automator items to the apple script so that their saveable can be set to false, and after this I cannot figure out how to have to movies re-saved so the changes will take effect.
Any help at all would be greatly appreciated.how are you passing files to apple script? as finder items?
the following should work then
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #ADD8E6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
on run {input, parameters}
tell application "Finder"
repeat with cur_file in input
set fname to (name of (get info for cur_file) as text)
tell application "QuickTime Player"
open file (cur_file as text)
set saveable of document 1 to false
tell application "Finder" to set new_item to (path to desktop as string) & fname
save self contained document 1 in new_item
delay 1
close document 1
end tell
end repeat
end tell
end run
</pre>
the above will dump the modified files onto your desktop and give them the same names they had before. You can adjust that as you like of course. -
Hello guys, I have an big Problem with my Programm in Apple script...
Everything of it works until a simple "duplicate" command. Then I will get error 10006 here is the script:
ps: I use "x" for folder name where I get "minecraft.jar"
tell application "Finder"
--Ermitteln des Ordner "Versionen" welcher sich im Ordner "Resources befindet"--
set i to (path to me) as string
set ii to (container of item i) as text
set theFolder to (container of folder ii) as text
set Versionen to folder "Versionen" of folder "Resources" of folder "Contents" of file i
--Application Support definieren--
set AppSupp to (path to application support from user domain) as text
--Einleitende Worte für das Programm--
display dialog "Willkommen im automatischen Versionen-Wechsel Programm für Minecraft. Bitte wählen Sie aus der folgenden Liste die Version, wechle Sie installiert haben wollen. -Ich weise darauf hin, dass die benützung auf eigene Gefahr ist."
--Auswahl der Version--
set liste to choose from list {"Vollversion 1.2.5", "Vollversion 1.2.3", "Vollversion 1.1", "Vollversion 1.0.0", "Beta 1.9 Pre 6", "Beta 1.8.1", "Beta 1.8", "Beta 1.7.3", "Beta 1.6.6", "Beta 1.5_01", "Beta 1.4_01", "Beta 1.3_01", "Beta 1.2_02", "Beta 1.1_02", "Beta 1.0"}
if liste is {"Vollversion 1.2.5"} then set x to "v_1.2.5"
if liste is {"Vollversion 1.2.3"} then set x to "v_1.2.3"
if liste is {"Vollversion 1.1"} then set x to "v_1.1"
if liste is {"Vollversion 1.0.0"} then set x to "v_1.0.0"
if liste is {"Beta 1.9 Pre 6"} then set x to "b_1.9 Pre 6"
if liste is {"Beta 1.8.1"} then set x to "b_1.8.1"
if liste is {"Beta 1.8"} then set x to "b_1.8"
if liste is {"Beta 1.7.3"} then set x to "b_1.7.3"
if liste is {"Beta 1.6.6"} then set x to "b_1.6.6"
if liste is {"Beta 1.5_01"} then set x to "b_1.5_01"
if liste is {"Beta 1.4_01"} then set x to "b_1.4_01"
if liste is {"Beta 1.3_01"} then set x to "b_1.3_01"
if liste is {"Beta 1.2_02"} then set x to "b_1.2_02"
if liste is {"Beta 1.1_02"} then set x to "b_1.1_02"
if liste is {"Beta 1.0"} then set x to "b_1.0"
--Ist Minecraft schon Installiert? Wenn Ja dann löschen--
if folder "minecraft" of folder AppSupp exists then
delete folder "minecraft" of folder AppSupp
end if
--MinecraftVorlage entpacken--
open file "minecraft.zip" of Versionen
--Pause--
delay 1
--Finder Fenster schließen--
close Finder window 1
--Vorbereiten der MinecraftVorlage--
duplicate file "mincraft.jar" of folder x of Versionen to folder "bin" of folder "minecraft" of Versionen.
Could anyone say me what's wrong with this line?
--Installieren--
duplicate folder "minecraft" of Versionen to AppSupp
--Pause--
delay 1
--Temporäre Dateien löschen--
delete folder "minecraft" of Verionen
--Alles Richtig?--
if folder "minecraft" of folder AppSupp exists then
display dialog "Die Installation von Minecraft wurde erfolgreich abgeschlossen!" with title "MC-Installer"
else
display dialog "Es ist leider ein unerwartetes Problem bei der Installation vorgelaufen." with title "MC-Installer"
end if
end tell
Error msg:
tell current application
path to current application
--> alias "Macintosh HD:Users:manuelfederanko:Desktop:VersioChanger.app:"
end tell
tell application "Finder"
get container of item "Macintosh HD:Users:manuelfederanko:Desktop:VersioChanger.app:"
--> "Macintosh HD:Users:manuelfederanko:Desktop:"
get container of folder "Macintosh HD:Users:manuelfederanko:Desktop:"
--> "Macintosh HD:Users:manuelfederanko:"
get folder "Versionen" of folder "Resources" of folder "Contents" of file "Macintosh HD:Users:manuelfederanko:Desktop:VersioChanger.app:"
--> folder "Versionen" of folder "Resources" of folder "Contents" of application file "VersioChanger.app" of folder "Desktop" of folder "manuelfederanko" of folder "Users" of startup disk
path to application support from user domain
--> alias "Macintosh HD:Users:manuelfederanko:Library:Application Support:"
display dialog "Willkommen im automatischen Versionen-Wechsel Programm für Minecraft. Bitte wählen Sie aus der folgenden Liste die Version, wechle Sie installiert haben wollen. -Ich weise darauf hin, dass die benützung auf eigene Gefahr ist."
--> {button returned:"OK"}
choose from list {"Vollversion 1.2.5", "Vollversion 1.2.3", "Vollversion 1.1", "Vollversion 1.0.0", "Beta 1.9 Pre 6", "Beta 1.8.1", "Beta 1.8", "Beta 1.7.3", "Beta 1.6.6", "Beta 1.5_01", "Beta 1.4_01", "Beta 1.3_01", "Beta 1.2_02", "Beta 1.1_02", "Beta 1.0"}
--> {"Beta 1.8.1"}
exists folder "minecraft" of folder "Macintosh HD:Users:manuelfederanko:Library:Application Support:"
--> false
open file "minecraft.zip" of folder "Versionen" of folder "Resources" of folder "Contents" of application file "VersioChanger.app" of folder "Desktop" of folder "manuelfederanko" of folder "Users" of startup disk
close Finder window 1
--> {}
copy file "mincraft.jar" of folder "b_1.8.1" of folder "Versionen" of folder "Resources" of folder "Contents" of application file "VersioChanger.app" of folder "Desktop" of folder "manuelfederanko" of folder "Users" of startup disk to folder "bin" of folder "minecraft" of folder "Versionen" of folder "Resources" of folder "Contents" of application file "VersioChanger.app" of folder "Desktop" of folder "manuelfederanko" of folder "Users" of startup disk
--> error number -1728 from file "mincraft.jar" of folder "b_1.8.1" of folder "Versionen" of folder "Resources" of folder "Contents" of application file "VersioChanger.app" of folder "Desktop" of folder "manuelfederanko" of folder "Users" of startup disk
Ergebnis:
error "„Finder“ hat einen Fehler erhalten: „folder \"bin\" of folder \"minecraft\" of folder \"Versionen\" of folder \"Resources\" of folder \"Contents\" of application file \"VersioChanger.app\" of folder \"Desktop\" of folder \"manuelfederanko\" of folder \"Users\" of startup disk“ kann nicht als „file \"mincraft.jar\" of folder \"b_1.8.1\" of folder \"Versionen\" of folder \"Resources\" of folder \"Contents\" of application file \"VersioChanger.app\" of folder \"Desktop\" of folder \"manuelfederanko\" of folder \"Users\" of startup disk“ gesetzt werden." number -10006 from folder "bin" of folder "minecraft" of folder "Versionen" of folder "Resources" of folder "Contents" of application file "VersioChanger.app" of folder "Desktop" of folder "manuelfederanko" of folder "Users" of startup diskpath to resource is straightforward. the command:
path to resource "filename.xxx"
will return an alias to /path/to/your app/Contents/Resources/filename.xxx, automatically accounting for placement of the app file in the file system. use the in directory parameter if you want to specify a subfolder of the resources folder. The only tricky thing about it is that when you run the script from the script editor it may think the currently running app is the script editor, not your app, and swo return a path to script editor's resource folder.
Maybe you are looking for
-
Any way to make text larger in Photoshop CS 5 Extended?
I recently upgraded from CS3 and the tool labeling text is too small to be able to see on the toolbars. The icons seem smaller too. I need to use a magnifying glass now and didn't need to do that with CS3. I did look through Photoshop's prefs (the ma
-
Airplane mode on. iMessage sent as text message
I believe that this is a drastic oversight by Apple, that I noticed as recently as 1 year ago. When I travel abroad, I turn Airplane mode on, which SHOULD disable any cellular network/service no matter what. I turn on WiFi so that I can still use iMe
-
Is there a Lightning to Lightning cable ?
I have a charger with a lightning connection, but the phone case that my spouse uses prevents setting the iPhone5 on top of it. I need a cable with a female lightning jack to a male lightning plug (and the male plug can't be any larger than the norm
-
My iPhone 6 has got a bright white pixel that can be seen on any colour exept black. You can even see it on dark grey. I am wondering what this is, and how I can fix it. It is unlikely it was due to pressure. About the size of a grain of salt or two.
-
Adobe flash plugin "invalid" after pluginreg.dat rebuild - why?
Just loaded Fedora 16 and it comes with FireFox7. Followed all of the instructions to download Adobe Flash, loaded the .so into the plugin directory, but the plugin did not appear. Followed the Troubleshooting instructions and deleted the pluginreg.d