Help with wav file, stop and play buttons

Hey everyone,
I'm new to actionscript, and flash for that matter. I created
a new flash file, and a new layer. On that layer I put 2 buttons,
btnPlay and btnStop.
I found some code on this forum, and tried it, but it isn't
working. The code is below. I get no errors, but when I test the
movie, it doesn't play any music. I selected this layer, selected
frame 1, and put this code in the actions window.
mySound = new Sound();
btnPlay.onRelease = function () {
mySound.attachSound("adagio");
mySound.start(0);
btnStop.onRelease = function() {
mySound.stop("adagio");
I should also note, I have another layer with a movie clip on
it, and another layer with a picture on it.
Any help would be appreciated,
Thanks,
Jesse

As another note--I right clicked on the wav file in my
library and selected linkage and export to first frame as well as
export for actionscript (and named the linkage "adagio"). Might
help with a solution.

Similar Messages

  • Stop and play buttons...

    How would I go about adding stop and play buttons to a slideshow?
    stop1.addEventListener(MouseEvent.CLICK, stop1);
    play1.addEventListener(MouseEvent.CLICK, play1);
    function stop1(event:MouseEvent){
    if(this.currentFrame == 1)
    { gotoAndStop(this.totalFrames);
    function play1(event:MouseEvent){
    if(this.currentFrame == 1)
    { gotoAndStop(this.totalFrames);

    well idk if the code is even right i need help?  The way the slide show is working is i have it on the timeline....  With this code it doesnt play automatically and when i push play it goes through them in like 2 seconds and you can't see anything?
    stop1.addEventListener(MouseEvent.CLICK, stopSlide);
    play1.addEventListener(MouseEvent.CLICK, playSlide);
    function stopSlide(event:MouseEvent):void {
    stop();
    function playSlide(event:MouseEvent):void {
    play();

  • Emailed voicemails with .wav files no longer play

    My office has a VoIP system that I have set up so it sends me an email (Gmail not Outlook) with the voice mail message attached as a .wav file.  On Sunday my Droid Razr M stopped working and Verizon made me do a hard reset to restore factory settings.  Since then I can't open the voice mail messages.  When I try to play the message I get this error message: "Info  No app can open this attachment for viewing."
    What got reset/removed during the factory reset and how can I restore the ability to play voice mails?

    its the updates to google play music causing the problem
    go to settings > apps > all and remove updates to google play music and it will start working

  • Help with wav files

    To whom this may concern, can you please help me with this problem!
    I am trying to pass a wav file without the header just the data into a Vector in Java.
    I need to convert this Matlab (adaptive decorrelation filter) file into Java.
    function [v1, v2, a, b, c] = adf(y1, y2, mu1, mu2, delay, Na, Nb);
    %[v1, v2, a, b, c] = adf(y1, y2, mu1, mu2, delay, Na, Nb) implements the
    %adaptive decorrelation filter. The Lx1 vectors y1 and y2 are microphone
    %signals, mu1 and mu2 are ADF stepsizes, delay is any constant delay that
    %the microphone signals might have incurred, and Na and Nb are the ADF
    %filter lengths. The function returns the separated signals in v1 and v2,
    %and the ADF coefficients in a and b.
    a = zeros(Na, 1); %ADF coefficients
    b = zeros(Nb, 1); %ADF coefficients
    L = length(y1); %lenght of Microphone signals
    vvec1 = zeros(Nb, 1);
    vvec2 = zeros(Na, 1);
    yvec1 = zeros(Nb, 1);
    yvec2 = zeros(Na, 1);
    v1 = zeros(L, 1);
    v2 = zeros(L, 1);
    for i = 1+delay: L
    yvec1 = [y1(i); yvec1(1: Nb-1)];
    yvec2 = [y2(i); yvec2(1: Na-1)];
    v1(i) = y1(i-delay) - yvec2'*a;
    v2(i) = y2(i-delay) - yvec1'*b;
    vvec1 = [v1(i); vvec1(1: Nb-1)];
    vvec2 = [v2(i); vvec2(1: Na-1)];
    a = a+mu1*vvec2*v1(i);
    b = b+mu2*vvec1*v2(i);
    end
    c =[1;zeros(Na+Nb-2, 1)] - conv(a,b); %impulse response of C(Z) = 1 - A(Z)B(Z)

    To whom this may concern, can you please help me with
    this problem!
    I am trying to pass a wav file without the header just
    the data into a Vector in Java.Piece of cake until you reach conv. -:) Convolute right.

  • Audition 5.5 - Help with .wav files for phone system - making a hold message PC & Mcc

    Hello everyone,
         I am really frustrated trying to create a .wav file for our phone system and I was hoping someone might have some suggestions as I am new to using Adobe Audition. Our phone system will only accept .wav files for our hold messages but the tricky part is that is can only be a maxiimum streaming bit rate of 64 kbps. Everything we've created under 256 kbps becomes in-audible and I'm really not sure what to do as the current messages sound fantastic. Our current hold message is 35 seconds long and we have another one we are about to do which will be 2 minutes long (uuuugh).
    - I've tried first converting the .wav file to an .mp3, lowering the bit rate to 64 kbps, then converting back to .wav but the bit rate goes up to almost 1500 kbps after re-converting.
    - I've tried making the track mono, reducing the sample rate to 22k but the size ends up being somewhere between 512 and 768. If I lower the sample rate much further and convert to 8bit, the audio sounds terrible.
    - I've also tried using Adobe Media Encoder, Audacity, Hand Brake, OS X Automator and a few other programs all with the same results.
    - I've tried re-recording the audio on a handheld .mp3 recorder hoping the initial quality would be less (originally recorded on a PC through Audition with a external mic).
    Unfortuantely, the person who used to do these conversions is no longer with the company, never documented the process and all I know is that they used to do this on a Mac. Also, the software that uplaods the files is a Linux based which is out of my area of expertise so I'm not able to tinker with it to make any headway.
    ** Any sort of suggestion would be greatly aprpeciated as I really don't know much about audio. I've been working on this for 2 weeks now and this is really driving me crazy. **

    9ov7 wrote:
    Hello everyone,
         I am really frustrated trying to create a .wav file for our phone system and I was hoping someone might have some suggestions as I am new to using Adobe Audition. Our phone system will only accept .wav files for our hold messages but the tricky part is that is can only be a maxiimum streaming bit rate of 64 kbps. Everything we've created under 256 kbps becomes in-audible and I'm really not sure what to do as the current messages sound fantastic. Our current hold message is 35 seconds long and we have another one we are about to do which will be 2 minutes long (uuuugh).
    - I've tried first converting the .wav file to an .mp3, lowering the bit rate to 64 kbps, then converting back to .wav but the bit rate goes up to almost 1500 kbps after re-converting.
    Eugh! Converting to MP3 is absolutely not the thing to do!
    - I've tried making the track mono, reducing the sample rate to 22k but the size ends up being somewhere between 512 and 768. If I lower the sample rate much further and convert to 8bit, the audio sounds terrible.
    - I've tried re-recording the audio on a handheld .mp3 recorder hoping the initial quality would be less (originally recorded on a PC through Audition with a external mic).
    Okay, in reverse order: I know it sounds daft, but actually you want to start with the best recording you can possibly have. You are going to have to reduce its bit rate, but if you reduce a crap signal's bit rate, it inevitably ends up worse than reducing a good signal's one; when you think about that for a moment, it's going to make sense (I hope...).
    As for what you need to do - well it's going to have to be a mono file anyway (you haven't got a stereo telephone system), and that will immediately halve the streaming rate, but the other thing you need to bear in mind is that telephones have a limitited bandwidth, and that your sample rate, even at 22k, is going to give you more bandwidth than the system has. If you can reduce it to 8k, it will work fine. This will still give you an upper frequency limit of 4kHz, and that's more than adequate for telephone speech, believe it or not...
    The other thing, and this is where I think you may be running into trouble, is that 8 bit streaming is pretty much the norm here. All it does is to increase the noise floor, so that the signal to noise ratio is about 48dB instead of the 96dB it would be with a 16-bit signal. But, to get this to work to your advantage, you have to optimise the audio you are using in the first place. Chances are that you need to compress your recording so that it has a relatively limited dynamic range before reducing it to 8-bit, and then you'll be fine. This is better anyway for telephone systems - there's far less chance of bits of the message being missed because they're too quiet. Also, you don't want massive great peaks in the recording - these just reduce the maximum overall level for the majority of the message sound. So, you need to apply a limiter to get rid of them, leaving the majority of the speech sounding just as good, only louder. All of this you can easily do in Audition - don't need any other software at all.
    So, my guess is that the previous maker of your messages knew exactly what he was doing. Yes, he could have documented the basic steps, but he couldn't have been absolutely specific about it because no two recordings are the same. I'll attempt to explain the basic steps in English, but how well you will be able to follow this, I'm not sure...
    The basic process I'd go through with the recordings is firstly to normalize them to 0dB, then look at how far down most of the 'green' parts are - this is the bulk of the signal, and where all of the meaning is. Then, you apply a limiter to this so that those green parts don't have peaks sticking out of them. Then, if you need to, normalize again so that the green part moves to the upper part of the waveform space (towards where 0dB is). Then, if you need to, apply compression to the signal so that the level of it sounds about the same all through the message.
    Now, when you reduce your signal to mono, 8k, and 8-bit, pretty much everything about the original signal will still be there. That should stream 8-bit words at 8k, making 64k streaming for a single mono channel. This will work fine, but only if you optimise the signal first - otherwise no chance!

  • Need help with java file scanner and objects

    Hi, i've got an assignment that asks me to do these, but i cant seem to get around in solving it. Any help will be much appreciated. TYVM!
    Create a class called TVProgram that can store some important details of a television program:
    - name of the show
    - the channel the show is on
    - the start time (in 24-hour format)
    - the end time (in 24-hour format)
    Write a program that uses this class.
    Your program will read a list of TV programs, making up a schedule for an evening's TV: for you convenience, you will be able to download a sample file listing. The listing will consist of one line for each of the above fields, in the above order, for each program, followed by a line containing only the "#" character. For example, here is the start of such a file.
    At the Movies
    ABC
    1800
    1830
    The Einstein Factor
    ABC
    1830
    1900
    Your program should start with a little menu to prompt whether to read from standard input or a file:
    Please choose a number for the way you will input the TV schedule:
    1. Read from standard input
    2. Input from a file
    Your program should first read the complete schedule, then loop through all the programs in the schedule and prompt the user as to whether they want to record the program or not. For example, the program should print:
    At the Movies is showing on ABC from 1800 to 18.30.
    Do you want to record it: type Y or N.
    If the user types Y then the program sets this T Vprogram to be recorded. If the user types N, the program goes to the next entry and prompts the user again. If the user types something other than a Y or N (or y or n), then the program should prompt for a proper answer:
    Do you want to record it: type Y or N.
    Once the complete schedule has been shown to the user, the program loops through those that the user has said they want to record and checks for any clashes---i.e. any times at which the user wants to record two programs at the same time. For any clashes, your program should show these to the user and insist that only one be selected for being recorded. For example:
    At 1830 you want to record both 1. The Einstein Factor on ABC and 2. The Biggest Loser on Ten.
    Please pick option 1 or 2 to record.
    Again, if the user selects an option other than 1 or 2 in the above, then the program should make the user to make another selection until they type a legal value.
    If the schedule is in time-start order (see "Assumptions" below), then a simple way to check for clashes is:
    - as you loop through the schedule of shows, keep track of the latest end-time the user wants to record;
    - if any program the user says they want to record has a start-time before this latest end-time, then this is a clash.
    There are different ways to keep track of clashes: you can keep an array (a list of clashes) of arrays (each of these is the list of clashing programs); you could create a Clash class.
    Finally, after going through all clashes, print out the list of programs that the user still wants recorded.
    Here is the list of programs that will be recorded for you:
    From 1830 to 1930, The Biggest Loser, on Ten.
    From 1930 to 2030, Who Do You Think You Are, on SBS
    -----

    * @(#)TVProgram.java
    * @author      Okky Satya
    * @version 1.00 2008/3/29
    import java.util.*;
    import java.io.*;
    public class TVProgram {
         private String name;
         private String chnl;
         private int strt;
         private int ends;
         public TVProgram(String showName, String channel, int start, int end ){
              this.name = showName;
              this.chnl = channel;
              this.strt = start;
              this.ends = end;
        public static void readFileInput() {
        List prog = new ArrayList();
        Scanner inputFile = null;
         try
        inputFile = new Scanner(new File("tv_schedule"));
         catch (FileNotFoundException fe)
        System.out.println("File not found!");
        System.exit(0);
        while(inputFile.hasNext()== true){
             while (inputFile.nextLine()!="##")
                  new TVProgram;
        public static void readInput(){
        public static void loopInput(){
        public static void showList(){
        public static void checkUserList(){
        public static void main(String[] args){
             int menuChoice = 0;
             System.out.println("Please choose a number for the way you will input the TV schedule:\n  1. Read from standard input\n  2. Input from a file");
             switch(menuChoice){
                  case 1:
                       readInput();
                       break;
                  case 2:
                       readFileInput();
                       break;
             loopInput();
             checkUserList();
             showList();
    }

  • Help with making files viewable and playable from other accounts on leopard

    i recently got an imac (20in 2.4) and i want to play music on my account that is on my dads acccount...i looked it up and it said to click file and then 'get info' then you can make it 'view' or 'view and read' i do that and it still doesnt work...it keeps saying i dont have enough access privleges. please help

    Where did you look this up? (link please)

  • Having trouble with wav files and sample rates

    Hi ,I am having trouble with wav files and sample rates .I have been sent multiple projects on wav as the main instrumental ; I wish to record in 48.000kHz .Now comes the problem.When I try to change the project to 48k It seems to pitch up the track.I can't have them send the logic/project file as most have outboard synths,different plug ins etc.This particular case the producer has recorded the synth task in 41.000 kHz .My successful outcome would be to be able t create a project file in 48 kHz .And NOT pitch up whne I add the instrumenta wav file .Any help would be gratefully recieved,this is my first post so any mistakes I may have made go easy 

    You'll have to convert the actual synth audio file file that the producer gave you to 48kHz. You can do this in the audio Bin in Logic.

  • HELP WITH VIDEO FILES AND PUTTING ON ITUNESSS!!!!!!!!!!

    hey...i need help with my video ipod and itunes....i recently had sum problem with my ipod and i had to restore it...and when i hooked it up to itunes all the songs got back on it...its just that the videos never got updated with the songs....the videos are converted and were workin fine....now when i select the folder to put it into the itunes it says processing and nuttin happens...this is drivin me crazy anyone know how to fix this ****??
    THX
    5g ipod video    

    ok...i just uninstalled itunes and installed the previous version...and it worked fine....

  • Wav files won't play in Firefox 22

    Wav files won't play in Firefox 22. Previous versions of Firefox are fine. Other sound is fine. I have the latest mac OS X. Quicktime is set to play wav files. I have the latest version of it.
    Is there a fix for this?
    Is there any other plugins I can install which will play the wav files?

    Thank you for your response Alice.
    I checked about:plugins and I DO have audio/wav and audio/x-wav. It it QuickTime 7.7.1 I have.
    In Firefox Preferences Applications Panel I do not seem to have the iTunes.Document audio/x-wav there, only the audio/wav and Waveform Audio.
    Re the New Email Notification feature with my Webmail, this is not activated via a Firefox extension. I don't really know how it works but when I'm logged into my Webmail email account and a new email arrives, a wav sound is played to alert me of the new email. This has always happened with all previous versions of Firefox, just not since I updated to Firefox 22 but when I go back to Firefox 21, it works again.
    I have previously asked about this with my Webmail company. They knew nothing of this problem. I have now asked them for a second time now that I know that it is only THEIR wav sound that won't play. Other wav files play OK with Firefox 22.
    I do not know what is at fault - Firefox 22, QuickTime or the Webmail site but for the past few days I have frequently switched between Firefox 22 and Firefox 21. Each time the New Email Notification wav sound works with Firefox 21 and doesn't with Firefox 22 so that makes me suspect that somehow Firefox 22 is at fault.
    But it is a mystery and I might be stuck with it - unless it disappears as mysteriously as it arrived with a newer version of Firefox or maybe even a newer version of Quicktime.
    Thank you to everybody who has tried to help me.

  • Full Duplex Lost with Wave Files on SB Live! Value (W

    <SPAN>Following a clean install upgrade from WinME to WinXP SP2 on a Dell Dimension 400 with an OEM-installed SB Li've! Value (WDM) PCI card onboard, full duplex wave audio (recording one wave file while playing back one or more other wave files) ups and disappears ? ME had it, XP doesn?t.<SPAN> The record side of software mixers I use on the XP OS (Quartz AudioMaster, NCH Swift Sound MixPad/WavePad) fail to acquire or record the wave signal(s) being played back by the mixer side of the application.<SPAN> Stand alone recorders (Roxio Easy Audio Capture, HotKey Sound Recorder) also fail to acquire or record the wave signal(s) being played back by the aforementioned mixers.<SPAN> But if I switch the record input to microphone during the record pass (on those apps that permit such midstream switching), the mic records without incident.
    <SPAN>Creative?s Auto Update shows all drivers for the sound card are up to date.<SPAN> Applying Creative?s Knowledge Base Solution ID 645 passes all DXDIAG tests with no problems (text file results available if anyone cares to see them) but the manual test using twin Sound Recorders fails as the second copy (record-designated) Sound Recorder fails to acquire or record a signal from the first copy (playback-designated) Sound Recorder (no error codes display at any time).<SPAN> Clean booting WinXP and running the same record passes doesn?t rectify the problem.
    <SPAN>Anyone know what?s going on here?<SPAN> And how to fix it's<SPAN> I?m stumped.
    <SPAN>TIA . . .

    For benefit of anyone who hits this thread in a search:
    FWIW - Following 5-weeks of troubleshooting this problem with Microsoft Tech Support (including a parallel install of the XP SP2 OS), we reached the following conclusion: <SPAN>Since the OEM sound card (Creative Model CT4780) was known to operate in full-duplex mode without incident under my system's prior ME OS but the same card fails to consistently operate in full-duplex mode while running under a virgin parallel install of the XP OS, the source of my full-duplex problem must lie in the files and drivers resident on the XP OS CDROM and dropped to my system by the OS loader/installer.<SPAN> There really isn't any other plausible explanation.<SPAN> Absent its drivers, a sound card's nati've hardware state is either going to be full-duplex or it isn't - it would never be full-duplex sometimes and half-duplex (or simplex) the rest.
    <SPAN>The problem was resolved when a retail, nearly identical, sound card (Creative <SPAN>Model SB040) and the drivers and files from its CDROM, were installed on the same system.
    <SPAN><SPAN>Perhaps, somewhere, drivers exist that will permit the CT4780 to operate consistently in full-duplex mode on an XP SP2 OS - but neither Microsoft, nor I, had any success in locating them.

  • Disk Mode? How long pressing the select and play buttons?

    Please, I`ve tried everything to turn it on my ipod since i drop it. It doesn`t appear in itunes or desktop, or my computer. It was with that exclamation mark. I was trying to turn to Disk mode, but it doesn`t go!! For how long should i hold the select and play buttons? I was holding for about 5 minutes until i gave up. Does it take that long?
    Thanks, Juliana

    How to put your iPod into disk mode:
    1) First, make sure that your iPod is mostly charged.
    2) Toggle the "hold" switch on/off a few times.
    3) Hold the "menu" and "select" (center) buttons down together for 7 seconds.
    4) As soon as the Apple logo appears on the screen, let off the menu and center buttons, and immediately click the "select" (center) and "play/pause" buttons until the "disk mode" screen appears.
    If that didn't work, your iPod might be broken.
    But before you presume that, try those four steps above several more times. Sometimes you need to do this step several times before you get the hang of it.
    I hope this helps!
    ~~Kylene

  • Can some help with CR2 files ,Ican`t see CR2 files in adobe bridge

    can some help with CR2 files ,I can`t see CR2 files in adobe bridge when I open Adobe Photoshop cs5- help- about plugins- no camera raw plugins. When i go Edit- preference and click on camera raw  shows message that Adobe camera raw plugin cannot be found

    That's strage. Seems that the Camera Raw.8bi file has been moved to different location or has gone corrupt. By any chance did you try to move the camera raw plugin to a custom location?
    Go To "C:\Program Files (x86)\Common Files\Adobe\Plug-Ins\CS5\File Formats" and look for Camera Raw.8bi file.
    If you have that file there, try to download the updated camera raw plugin from the below location.
    http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=5371&fileID=5001
    In case  you ae not able to locate the Camera Raw.8bi file on the above location, then i think you need to re-install PS CS5.
    [Moving the discussion to Photoshop General Discussions Forum]

  • Help with opening Adobe Reader and downloading updates

    I can not open Adobe .pdf files any longer (this started yesterday, prior to that I could open adobe files).
    When I double click a .pdf file I get this notice on my screen: Windows cannot access the specified device path or file. You may not have the appropriate permission to access file.
    So I went to the Adobe download site to download a new copy of Adobe.  When I start the download I get this on the screen:  The instruction at "0x0e3a0068" referenced memory at "0x0e3a0068."  The memory could not be written.  Then two options are listed: click OK to terminate or cancel to debug.  So I click on cancel and I get this on my screen: Internet Explorer has closed this webpage to help protect your computer.   A malfunctioning or malicious addon has caused I.E. to close this webpage.
    I don't have AVG running, I do have avast but I've disabled it.  I ran Registry Mechanic and an I.E. erasure program but nothing helps.
    I have gone into I.E. and reduced the security level to its lowest state but no joy.
    So, any ideas or suggestions on what's the problem and how to overcome it would be appreciated.  Thanks, in advance, for your reply.  Jim R.

    Hi Mike..tried that as well but no joy.  A friend of mine was looking at it all and noticed that it was an I.E. thing as far as not letting me redownload the reader so I went to Mozilla Firefox and I could download a new version but....whenever I attempt to open a .pdf file I get that message, "Windows can not open the specified device, path or file. You man not have the appropriate permissions to access the item." 
    Damn...this is irritating as I need to get to some of thos files as I need them for a Journal I'm working on as editor-in-chief. 
    It all worked just fine last Saturday but starting Monday when I was on my flight out to D.C.  no joy. 
    Sigh...Jim R.
    Jim R.
    Date: Tue, 1 Dec 2009 14:50:27 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help with opening Adobe Reader and downloading updates
    Under the help menu, there is an option to repair the installation of reader. Did you try that?
    >

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

Maybe you are looking for

  • Web gallery Preview - not working

    I just upgraded my Apple Mac Pro to OS X Yosemite, v10.10.3.  I am running Photoshop & Bridge CS6.  When I create an HTML Web Gallery in Photoshop (or Bridge, more accurately) I can no longer Preview the gallery before Saving it.  Is there a compatib

  • 6.0.4 Update - fixes nested ID file links info

    Hi all, I got a message from an Adobe development manager letting me know of the 6.0.4 update. Specifically they have (almost) rectified the issue where you could not find out about graphic links inside of ID docs that were placed inside another ID d

  • How can I put all the settings from firefox back to there standard without losing any of my bookmarks?

    I want to use the standard settings again for firefox without losing any of my bookmarks. Is this possible?

  • Need help with backup strategy

    So my 2 TB backup drive failed this morning.  I'm using a Seagate drive in an OWC external enclosure.  I plugged it in and the drive didn't pop-up on the desktop, nor is it visible in Disk Utility. I know that all drives eventually fail, but it seems

  • Implementing a object using cofiles

    Hi Folks, Do anyone here has an idea of what are the do's and dont's while importing an object into a server using cofiles or what kind of problems we will be facing. Here is a case. A developer has implmeneted an object (no development done from SE3