How can I open a document with applescript without the doc. window opening.

How can I open a document with applescript without opening the document window and speak the text of the document?  I can get it to open the file but the doc window always opens up. 

try
          set pathToMyFolderOnDesktop to ("Macintosh HD:Users:jodyconnor:Desktop:") & "Dsource:" as alias
          set rnd to (random number from 1 to 6)
          set rndFileName to (rnd as text) & ".scpt"
          set FullPath to pathToMyFolderOnDesktop & rndFileName as text
          set myScript to load script (FullPath as alias)
  run script myScript
on error the error_message number the error_number
          display dialog "Error: " & the error_number & ". " & the error_message buttons {"OK"} default button 1
          return
end try
This code answered my question:  Hats off to Digimonk from stackoverflow and Darrick Herewe from stackoverflow.

Similar Messages

  • How can I restore my iphone with icloud without the setup assistant?

    How can I restore my iphone with icloud without using the setup assistant? If this is not possible, how do open the setup assistant?

    Settings, general, reset, erase all contenet and settings, then you will restore from icloud.

  • HT5232 does ipad mini have a usb port? if not then how can i share my documents with devices other than apple?

    does ipad mini have a usb port? if not then how can i share my documents with devices other than apple?

    Wireless Flash Drive (tap to enlarge image)

  • How can I print a file with mixed page orientation in windows 8.1?

    I have a win 7 and a win 8.1 computer.  I have a file which contains both landscape and portrait pages.  The file prints correctly with the mixed orientation from the win 7 pc, but will only print with either landscape or portrait on the win 8.1 pc. 
    I am using Adobe reader XI on the win 7 pc and adobe touch on the win 8.1 pc

    ส่งจาก จดหมายของ Windows
    จาก: Pat Willener
    ส่งเมื่อ: จ. 5 มกราคม 2558 6:15
    ถึง: thang dinhvan
    How can I print a file with mixed page orientation in windows 8.1?
    reply from Pat Willener in Adobe Reader Touch for Windows 8 - View the full discussion 
    I have a win 7 and a win 8.1 computer.  I have a file which contains both landscape and portrait pages.  The file prints correctly with the mixed orientation from the win 7 pc, but will only print with either landscape or portrait on the win 8.1 pc. 
    I am using Adobe reader XI on the win 7 pc and adobe touch on the win 8.1 pc
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7064031#7064031 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7064031#7064031
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Reader Touch for Windows 8 by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • How can I format my intell based imac without the original Tiger discs? I have a user account on it that I dont want. I have upgraded to Snow Leopard but I want to to star affresh. Thank you.

    How can I format my intell based imac without the original Tiger discs? I have a user account on it that I dont want. I have upgraded to Snow Leopard but I want to to start affresh. Thank you. I have tried loading the Snow Leopard disc whilst holding down th C key but it goes straight into install mode. I am new to Macs and I have inherited this machine.

    Hello, many options...
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
       2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
          *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
       3. Click the Erase tab.
       4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
       5. Select your Mac OS X volume.
       6. Highlight the drive, select Partition Tab, then Format type... MacOS Extended Journalled, select the Security Options button, choose Zero Out Data, Erase... after completion do a new install.
    Or...
    Open System Preferences>Accounts, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    In the same pref pane highlight your old account, click the little minus icon, then use Disk Utility to Secure Erase Free Space.

  • How can i reinstall elearning suite 2.5 without the disk?

    how can i reinstall elearning suite 2.5 without the disk?

    Hi figh1ing
    Please refer : http://forums.adobe.com/message/5502348

  • Im using os x 10.5.8 so I dont have the app store on my mac, how can I update my os x software without the app store?

    Im using os x 10.5.8 so I dont have the app store on my mac, how can I update my os x software without the app store?
    Can I download it online?

    Nope.
    https://discussions.apple.com/docs/DOC-2455 explains how to get 10.6.6 to get the App Store.
    Only upgrade to 10.7 or later if you are prepared:
    https://discussions.apple.com/docs/DOC-6271

  • How can I draw a line in Preview without the arrow head

    Hello all!
    How can I draw a line in Preview without the arrow head at the end of the line?

    Yes. Once you select the line bar a new entry will appear where you can select what type of line. Based on my experience whether or not it will change is iffy.

  • HT1212 how can I enable my old iPhone 3 without the passcode

    how can I enable my old iphone 3 without the passcode

    Follow the directions here to force the phone into recovery mode & restore it:
    http://support.apple.com/kb/HT1808

  • How can I share a document with .mov files in it?

    I have written an article using Pages and used .mov files.  How can I send the article so that it included "playable" videos?  When I try to share it publicly it turns the page into a PDF and the .mov become like pictures.

    Do you know that the resource entitled Pages User Guide is also for you ?
    Searching for the keyword export bring us to page #253 where we may read the description of the formats available to share documents.
    PDF don't retain the movies attributes
    RTF don't retain them
    Plain Text don't retain them
    The last format available is Microsoft Word and I didn't know this one's behavior.
    So, I did what you were able to do by yourself, I inserted a .mov in a Pages document and exported it as a Word one.
    When I opened it in Word, the movie was always a living movie but it's true only for MicroSoft Word. In clones, the movie is just a black rectangle.
    It seems that you choose the wrong tool.
    Yvan KOENIG (VALLAURIS, France) mercredi 27 avril 2011 10:21:57

  • Indesign CS4- how can I create a document with more 10 pages?

    Hi,
    I have just begun to practise with Indesign. I want to create a tale with 22 pages. My question is how?
    At the moment it's half solved, because I have done 10 sheets and each is 2 pages, but I need 2 more.
    When I want to add more pages, alert message advise me that's no possible. The maxium is 10.
    Thisaction have donetrough page menu.
    Do it exist any trick?
    _ other question: edit maestra page:
    How is the procedure forediting maestra page? I want to add number page, a headline.
    Urgent! It's a delivery extra urgenT!
    Thanks a lot

    I'm not sure if I understand the way your document is set up currently. It sounds to me like you have created single InDesign pages that each contain a two-page spread for your finished document. This is not a good method for laying out anything longer than will fit on the front and back of a single sheet of paper.
    Instead you should be making your InDesign document using the "facing pages" option and setting the page size the same as the folded size of the finished booklet. If you have color that bleeds, add a bleed allowance in the document setup dialog (click the show more options dialog). When your booklet is printed the pages need to be arranged back cover/front cover, inside front/inside back, page last/page 1 and so forth so they appear inthe correct order after binding. This is easily automated if the pages are separate, but if they start out on the same sheet it is up to you to get the order right from the beginning, and it is difficult to do design work in printer's spreads layout. Keeping pages in consecutinive order allows you to design in the same view that your readers will see.
    I'm not sure what the error message about the limit of 10 is, but it sounds like you are trying to make a single spread for the whole document. You can have a maximum of 10 pages in a single spread. The question is why do you want so many pages next to each other? Does the document fold out this way? A "normal" book uses many two-page spreads. You can add pages normally by dragging a master page icon into the live page area in the panel, or using the "insert pages" command from the panel menu.
    To edit a master page, double-click its name. Add your page number in a text frame by inserting a "current page marker" special character in the frame.
    Peter

  • How can I share numbers documents with my coworkers?

    In our office we are used to share excel sheets. Now we are trying to do the same with numbers. But... When one of my coworkers opens the document at the same time and makes changes, the person saving last, overwrites the previous changes without getting a warning ...
    In windows you always get a warning when you open a document that is already opened by someone else. Does Numbers have some protection as well?

    This question was asked and responded several times.
    iWork is designed as a single user product.
    When a document is open, its System's busy flag remains set to false.
    Yvan KOENIG (VALLAURIS, France) mardi 30 novembre 2010 14:01:59

  • How can I open textedit documents using Word without the document looking like gobbledygook?

    Word documents from other computers open in Textedit on my macbook pro (10.6.8).  When I try to open them with Word -- by using "open with" or changing the preference in "get info" or just by dragging the file to the Word icon on my dashboard -- I get a window asking what I want to convert the file from.  No matter what I choose, the documents open as a jumble of symbols.  Is there any way to change this?  Any ideas would be greatly appreciated! 

    That's true, and that's what I've been doing, but I use dropbox to work on documents on different computers, and pasting things into new documents makes it more difficult to keep things organized.  I'm hoping there's a way to created a Word document on my macbook air, put it in my dropbox folder, and then open it as a Word document on my macbook pro.  Is that feasible? 

  • Premiere CS5 import avi clips without sound. How can I import avi clips with sound without convert?

    Dear Adobe Forum,
    I have the following problem, please help:
    I would like to import avi clips in adobe premiere. All clips have the same avi codec. But unfortunately my adobe premiere does not import the sound of a few
    avi clips. It is wired because about 10 out 70 avi clips which have all the same avi codec does not work with sound in premiere CS5. In the timline premiere import the video and audio line but there are no audio waves in the about 10 avi clips. additonally premiere plays the 10 avi clips in the source monitor without sound. Furthermore when I open the 10 avi files without adobe premiere they have sound, but with premiere there are no sound in the 10 avi clips.
    What can I do, so that I can import all avi files with sound. I do not want to convert each of the avi files because then they have not a good quality and it is to complicated and it takes to much time to convert all files in this video project and in the other video project in my future.
    Consequently How can I import all avi files so that they have immediately sound? Do I have to change some premiere settings?
    Thank you in advance
    Leonardo

    Now I show you details of 2 files:
    the first video clip which you can import with sound (works):
    Video:
    1280 x  720
    data rate: 4259 kBit/s
    total bitrate: 4387 kBit / s
    Single bit rate: 29 single images / second
    Format                           : AVI
    Format/Info                      : Audio Video Interleave
    File size                        : 63.5 MiB
    Duration                         : 2mn 1s
    Overall bit rate                 : 4 388 Kbps
    ID                               : 0
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : [email protected]
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 4 frames
    Format settings, GOP             : M=3, N=15
    Codec ID                         : H264
    Duration                         : 2mn 1s
    Bit rate mode                    : Variable
    Bit rate                         : 4 248 Kbps
    Maximum bit rate                 : 4 001 Kbps
    Width                            : 1 280 pixels
    Height                           : 720 pixels
    Display aspect ratio             : 16:9
    Frame rate                       : 29.970 fps
    Color space                      : YUV
    Chroma subsampling               : 4:2:0
    Bit depth                        : 8 bits
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.154
    Stream size                      : 61.4 MiB (97%)
    Audio:
    Bitrate: 128 kBit/s
    Channels: 2 (stereo)
    sampling rate: 48 kHz
    ID                               : 1
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format version                   : Version 4
    Format profile                   : LC
    Format settings, SBR             : No
    Codec ID                         : FF
    Duration                         : 2mn 1s
    Bit rate                         : 128 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : Front: L R
    Sampling rate                    : 48.0 KHz
    Stream size                      : 1.85 MiB (3%)
    Alignment                        : Aligned on interleaves
    Interleave, duration             : 21 ms (0.64 video frame)
    the second video clip which you can import without sound (doesn't work with sound):
    Video:
    1280 x  720
    data rate: 4278 kBit/s
    total bitrate: 4406 kBit / s
    Single bit rate: 29 single images / second
    Format                           : AVI
    Format/Info                      : Audio Video Interleave
    File size                        : 69.3 MiB
    Duration                         : 2mn 11s
    Overall bit rate                 : 4 407 Kbps
    ID                               : 0
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : [email protected]
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 4 frames
    Format settings, GOP             : M=3, N=15
    Codec ID                         : H264
    Duration                         : 2mn 11s
    Bit rate mode                    : Variable
    Bit rate                         : 4 267 Kbps
    Maximum bit rate                 : 4 001 Kbps
    Width                            : 1 280 pixels
    Height                           : 720 pixels
    Display aspect ratio             : 16:9
    Frame rate                       : 29.970 fps
    Color space                      : YUV
    Chroma subsampling               : 4:2:0
    Bit depth                        : 8 bits
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.154
    Stream size                      : 67.1 MiB (97%)
    Audio:
    Bitrate: 128 kBit/s
    Channels: 2 (stereo)
    sampling rate: 48 kHz
    ID                               : 1
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format version                   : Version 4
    Format profile                   : LC
    Format settings, SBR             : No
    Codec ID                         : FF
    Duration                         : 2mn 11s
    Bit rate                         : 128 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : Front: L R
    Sampling rate                    : 48.0 KHz
    Stream size                      : 2.01 MiB (3%)
    Alignment                        : Split accross interleaves
    Interleave, duration             : 21 ms (0.64 video frame)
    Consequently, as you can see, they have both nearly the same information
    Both video clips have the following audio codec:
    AAC
    In the folder where all raw video clips exist there are a few new files with the codec ending: .AVD ("the name of the file".AVD)
    But the 2 video clips mentioned above does not have any files like .AVD oder something else like that. But the first one works and the second one doesnt work.

  • How can I call contacts from my list without the country code that is registered with that contact?

    I have all my contacts registered with a country code. When I want to make calls from my iphone, I do not want the phone to dial the country code, but only the area code. How can I make that happen?

    Your 3G backup contains your contacts already, you don't need to sync them to Outlook or anything just restore the backup file from the 3G onto the 4S and you should be good to go.
    This kb article should help:
    http://support.apple.com/kb/ht1414

Maybe you are looking for