How can I get Applescript to operate correctly again?

I can't Applescript on G4 with OS 10.3.9 to work correctly. When I try to open an applescript the G4 says it can't find the Scriptable Text editor. I am then asked to choose an application but Applescript is not amoung the choices. When I close that window, the script I tried to open now opens with the script in purple (is that significant?). And icon of Scriptable Text Editor in on the desktop but when I try to open it, the program "cannot be found".
The script I am trying to run starts out:
tell application "Scriptable Text Editor"
activate
count characters of document 1
I have some good scripts from my G3 but I can't get the G4 to open or run them. Does this mean I have to reinstall Applescript from the CD? Or should I move the script editor from the extra drive or the desktop and put it in the Applescript folder?

HD--
I followed your suggestion and used
tell application "TextEdit"
activate
count characters of text of document 1
end tell
The even log came back as:
tell application "TextEdit"
activate
count every character of every text of document 1
"TextEdit got an error: NSReceiverEvaluationScriptError: 4"
The application I am working with is Appleworks 6. I went to AW6 Text suite dictioary and found:
AppleWorks Text Suite: Terms for use with word processing
Class character: a character
Plural form:
characters
Elements:
character by numeric index, as a range of elements
text as a range of elements
Properties:
color RGB color -- the color
font text -- the name of the font of the character
size real -- the size in points of the character
style text style info -- the text style of the character
uniform styles text style info [r/o] -- the text styles which are uniform throughout the specified text
drawing area drawing layer [r/o] -- the character’s drawing area (only for embedded graphics)
<Inheritance> text [r/o] -- subclass of text
So it appears that Script Editor should recognize characters.
There may be another glitch. When I open the downloaded Scriptable Text Editor, it opens in Mac Classic OS9. I don't know how relavent this is.
I also checked the dictionary for TextEdit Text suite and found:
Class text: Rich (styled) text
Elements:
character by numeric index, before/after another element, as a range of elements, satisfying a test
attribute run by numeric index, before/after another element, as a range of elements, satisfying a test
attachment by numeric index, before/after another element, as a range of elements, satisfying a test
word by numeric index, before/after another element, as a range of elements, satisfying a test
paragraph by numeric index, before/after another element, as a range of elements, satisfying a test
Properties:
<Inheritance> item [r/o] -- All of the properties of the superclass.
size integer -- The size in points of the first character.
font Unicode text -- The name of the font of the first character.
color color -- The color of the first character.

Similar Messages

  • How can I get Yosemite to operate my HP printer? The previous OS's worked fine..

    How can I get Yosemite to operate my HP printer? Previous OS's worked fine.

    My Apple Yosemite 10.10.1 will not recognize my new Epson Workforce 2660 printer. Any ideas? Printer has my network correct but it does not show up in the printer list under System Preferences. I removed the Epson printer and when I went to add it back on, it is not there. I reinstalled and it still will not show up

  • I am running Windows 7 64Bit system and everything was working normal.  However, I am now getting an error message stating objc.dll is missing.  I've re-installed Itunes but to no avail.  How can I get this error message corrected?

    I am running Windows 7 64Bit system and everything was working normal.  However, I am now getting an error message stating objc.dll is missing.  I've re-installed Itunes but to no avail.  How can I get this error message corrected?

    See this User Tip by turingtest2
      https://discussions.apple.com/docs/DOC-6562

  • Music in itunes from different cd's, how can i get it to have correct info?

    1.  I have over 2000 songs in itunes from different mixed cd's, how can I get them to have correct artist and album and titles?
    2.  How can I convert them all to mp3 because I have to be able to send them to windows media player because I have mp3 players that I would like to play these on along with my ipod? 

    I personally use TuneUp from http://www.tuneupmedia.com/
    It works on both Mac and PC.
    It is a great tool for correcting MetaData "Music Info" for all of your songs. It also adds the correct album artwork and can remove duplicate songs from your library easily.
    iTunes on PC will convert the WMA to MP3 for you if you like. To do so just right click on your WMA files in iTunes and choose convert to MP3.
    If you have already moved all of your music to Mac and no longer have a windows machine there are a couple of programs that will do it for you from Mac OS X. Some are free and some cost money. Let me know if you would like to know a couple of examples.

  • My sent messages in outlook for mac suddenly stopped syncing with my iPhone and iPad, all other folders work correctly. How can I get them to start syncing again?

    My sent messages in outlook for mac suddenly stopped syncing with my iPhone and iPad, all other folders work correctly. How can I get them to start syncing again?

    You can disable the Adobe Reader plugin in Firefox (Tools > Add-ons > Plugins) and use the external Adobe Reader application or Preview application instead.
    *Firefox > Preferences > Applications > Adobe PDF document : Use Adobe Reader
    PDF files may also be found under another entry like Portable document.
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file

  • I can not sync my iPhone to the computer. I keep getting up an error message that synchronization does not want to start. I have uninstalled iTunes and then reinstall it. But the same warning box will appear. How can I get my phone in sync again?

    Can someone please help me get my iPhone to sync to your computer?
    I can not sync my iPhone to the computer. I keep getting up an error message that synchronization does not want to start. I have uninstalled iTunes and then reinstall it. But the same warning box will appear. How can I get my phone in sync again?

    Hello lenmin,
    Thanks for using Apple Support Communities.
    To help resolve this issue where you're repeatedly prompted to authorize with your Apple ID in iTunes when syncing, please follow the directions in the article below.
    iTunes: Missing folder or incorrect permissions may prevent authorization - Apple Support
    Have a great weekend,
    Alex H.

  • My "Hanging with Friends" app keeps crashing whenever I try to open it. I have deleted and re-downloaded the app, restarted my iPhone, and even restored my iPhone all together, and nothing is working. How can I get this app to work again?

    My "Hanging with Friends" app keeps crashing whenever I try to open it. I have deleted and re-downloaded the app, restarted my iPhone, and even restored my iPhone all together, and nothing is working. How can I get this app to work again?

    Can you start Firefox in [[Safe mode]] ?
    You can also do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can initially skip the step to create a new profile, that may not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • I downloaded pictures onto my iPhone from computer twice by mistake now when i uncheck/sync then check and sync again  i keep getting two lots of pics..how can i get just the one set again? thnx

    I downloaded pictures onto my iPhone from computer twice by mistake now when i uncheck/sync then check and sync again  i keep getting two lots of pics..how can i get just the one set again? thnx

    You're welcome.
    All photos transferred from your computer are stored in the iPhone's Photo Library regardless if you select a single album or folder of photos to be transferred or multiple albums or folders. The photos on the albums or folders of photos include a pointer to the original photos stored in the Photo Library. The photos are not duplicated taking up double the storage space. This way you can view the photos in an album or folder of photos only by selecting the album or folder, or all photos in all albums or folders by selecting Photo Library.
    Makes more sense when transferring multiple albums or folders of photos which cannot be changed when transferring only a single album or folder of photos.
    The same applies with iTunes and music playlists. A song can't be in a playlist unless it is in the main iTunes library. Placing a song in a playlist does not duplicate the song.

  • HT1338 How can I get my photo to work again? the app will not open on my desk top any more. I can not dave my photo on my desk top

    How can I get my photo to work again? the app will not open on my desk top any more. I can not dave my photo on my desk top

    Hello, Cubby21. 
    Thank you for using Apple Support Communities.
    Here are the best resources for troubleshooting issues with Message.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Cheers,
    Jason H.

  • How can I get my speaker to work again?

    How can I get my speaker to work again? I've tried turning my phone off and on, hard reset, removing SIM, cleaning out dust, using the hair dryer, network reset, cleaning headphone port, made sure the phone was not on vibrate,and made sure "Change with buttons" was on. There was no liquid/moisture damage.  I was watching a video on youtube and all of a sudden my speaker went out. If I tap on the speaker it goes in and out but does not stay on/loud.

    Do you get sound in any apps e.g. in Music and Videos but not notifications or sound in other apps ? If you do get sound in Music and Videos then have you got notifications muted ? Only notifications (including games) get muted, so the Music and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad above the volume switch, or via the taskbar : double-click the home button; slide from the left; and it's the icon far left; press home again to exit the taskbar. The function that isn't on the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085
    If you don't get sound in any apps then have you could try a soft-reset to see if you get sound after the iPad has restarted : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • HT5622 How can I get my iMessage to work again on my iPad mini?

    The iMessage on my iPad Mini quit working, although it still works on my iPhone.  When I look at my settings in messages, my phone number isn't there and it will not allow me any way to enter my phone number.  How can I get my iMessage to work again?

    Hello, Cubby21. 
    Thank you for using Apple Support Communities.
    Here are the best resources for troubleshooting issues with Message.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Cheers,
    Jason H.

  • Updated to IOS 5.0.1 and now if I tap on a game icon instead of opening the game a grayish color comes over it and nothing happens. How can I get my games to work again?

    Updated to IOS 5.0.1 and now if I tap on a game icon instead of opening the game a grayish color comes over it and nothing happens. How can I get my games to work again?

    Purplehiddledog wrote:
    I do backup with iCloud.  I can't wait until the new iMac is available so that I can once again have my files in more than 1 location without needing to rely solely on the cloud. 
    I also rely on iTunes and my MacBook and Time Machine as well as backing up to iCloud. I know many users know have gone totally PC free, but I chose to use iCloud merely as my third backup.
    I assume that the restore would result in my ability to open Pages and Numbers and fix the problem with deleting apps, but this would also mean that if my Numbers documents still exist solely within the app and are just not on iCloud for some reason that they would be gone forever.  Is that right?
    In a word, yes. In a little more detail.... When you restore from an iCloud backup, you must erase the device and start all over again. There is no other way to access the backup in iCloud without erasing the device. Consequently, you are starting all over again. Therefore, it would also be my assumption that Pages and Numbers will work again and that the deleting apps issues would be fixed as well.
    If the documents are not in the backup, and you do not have a backup elsewhere, the documents could be gone forever.

  • HT201413 I have restored and updated my ipod from recovery mode however I still have the usb cord and itunes icon on the ipod when it is switched on. How can I get my ipod to work again?

    I have restored and updated my ipod from recovery mode, however I still have the usb cord and itunes icon on the ipod when it is switched on. How can I get my ipod to work again? I have updated and restored 5 times! When connected to itunes it only shows the summary page saying ipod in recovery mode.

    Fixed it!
    1. Made sure itunes software was up to date
    2. Pressed and held 'home' button and 'on-off' button at the same time for about 10 seconds till ipod reset (I hadn't done this step previously)
    3. Connected to itunes
    4. Pressed restore and update ipod
    Update successful and ipod taken out of recovery mode

  • I just installed Readdledocs on my ipod, and now when I launch the app, I get a screen which says "downloading message" and the app freezes and won't do anything else.  How can I get the app to function again?

    I just installed Readdledocs on my ipod, and now when I launch the app, I get a screen which says "downloading message" and the app freezes and won't do anything else.  How can I get the app to function again?
    This happened after I tried to get Readdledocs to open an epub file which I created in Calibre.

    This is a followup to my own posting above.
    Thanks to Dave Sawyer for posting information about re-downloading an app which has been deleted.  I deleted the app from iTunes.  Then, when I synched, iTunes asked me if I wanted the items on my ipod touch copied back into iTunes.  I said yes and then synched.
    Readdledocs is now working again.  It is no longer frozen.  However, I have learned my lesson.  I will download only pdf's from now on.  I don't think it works so well with epub files.  The text reflow feature of Readdledocs is exactly what I need to use for my work documents on my ipod touch.

  • I was charged for a movie that never was downloaded, i asked for it but the conection was too slow and I never was able to have the movie that i asked for...how can i get it without being charged again, who could remove the chage from my Crecit card?

    i was charged for a movie that never was downloaded, i asked for it but the conection was too slow and I never was able to have the movie that i asked for...how can i get it without being charged again, who could remove the chage from my Crecit card?

    You may not be able to get a refund, since the terms of sale for the iTunes Store state that all sales are final. You can contact the iTunes Store, explain the reason for your request, and ask, though:
    http://www.apple.com/support/itunes/contact.html
    It's possible they'll make an exception for you, particularly if the problem was on their end preventing the movie from downloading in a reasonable time.
    Good luck.

Maybe you are looking for