Using Actions to SaveForWeb: Unable to keep file name

ENVIRONMENT:
start with an AI document, saved as an eps.
I have Actions to format the graphic. (one layer)
GOAL:
Am trying to automate a Save For Web, resize and KEEP THE FILE NAME, with only the file TYPE changing.
PROBLEM:
I wrote an Action specifying a particular folder to save the jpg to. If i run the Action it will default to the name it was originally saved with. For example, one.eps will save as one.jpg. two.eps will save as one.jpg.
If i delete or rename the folder, the file name will default to the FOLDER NAME. For example one.eps will save as "ExportFolder.jpg"
MY QUESTION:
Does anyone know how to make it keep the file name of the individual file? or any other tips on using Actions to export.
Thanks.

I understand what you are saying but for some reason I'm not able to get my code working based on the below, can you see what I might be doing wrong?  My script isn't erroring  but I'm second-guessing if I'm actually connecting.  I had to
use the webclient in the Get-FtpDir otherwise the script would fail.  Thanks!
$url = "ftp://##.#.#.#/"
$user = "username"
$pass = "123456" 
$credentials = new-object System.Net.NetworkCredential($user, $pass)
$webclient = New-Object System.Net.WebClient
$webclient.Credentials = New-Object System.Net.NetworkCredential($user,$pass) 
$target = "\\computername\C$\FTP\Download\"
function Get-FtpDir ($url,$webclient) {
    $request = [Net.WebRequest]::Create($url)
    $request.Method = [System.Net.WebRequestMethods+FTP]::ListDirectoryDetails
    if ($credentials) { $request.Credentials = $credentials }
    $response = $request.GetResponse()
    $reader = New-Object IO.StreamReader $response.GetResponseStream()
 $reader.ReadToEnd()
 $reader.Close()
 $response.Close()
$folderPath="ftp://##.#.#.#/folder/folder/"
$files=Get-FTPDir $folderPath
Foreach ($file in ($files | where {$_ -like "Test_*.txt"})){
 $source=$folderPath+$file
 $WebClient.DownloadFile($source, $target)
CINDI

Similar Messages

  • When using cloud, is it neccessary to keep files (i.e.: music, pics) on computer too?

    when using cloud, is it neccessary to keep files (i.e.: music, pics) on computer too?

    I belong to iTunes in order to put music on my computer and sync to my iPod.  I don't know if I belong to iTunes Match??  I have noticed that the vast majority of my songs when not connected to the Internet  are grayed out and not playable..  Then again there is a minority that are playable. Why are the color album photos of my playlist on my iPad.music.  Does't that use up storage space? Is there a way to get rid of them?

  • "unable to create *file name*" error

    I imported videos from ipod touch to iphoto. Then i try to export the videos on either desktop or external hard-drive and it gives me the "unable to create *file name*" error in both cases. To export videos i go FIle-Export, choose kind "original". Tried to do it with several different albums, and it doesn't work on any of them. Didn't have an issue for exporting pictures though.
    Please help!
    Nina

    What exactly was selected when you did the test?
    Regards
    TD

  • Error - Logical file is not part of database. Use RESTORE FILELISTONLY to list the logical file names

    I made a script to restore .bak or backup files. It works for some databases, but not for one. How do I make it work for any type of .bak file ? This is in sql server 2008. The error message is -
    Msg 3234, Level 16, State 1, Line 1
    Logical file 'Northwind_Data' is not part of database 'Northwind'.
    Use RESTORE FILELISTONLY to list the logical file names.
    Msg 3013, Level 16, State 1, Line 1
    RESTORE DATABASE is terminating abnormally.
    Script -
    IF DB_ID('Northwind') IS NULL
    BEGIN
    RESTORE DATABASE [Northwind]
    FILE = N'Northwind_Data'
    FROM
    DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SS2008\MSSQL\Backup\Northwind.bak'
    WITH FILE = 1,
    MOVE N'Northwind_Data'
    TO N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SS2008\MSSQL\DATA\Northwind.mdf',
    MOVE N'Northwind_Log'
    TO N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SS2008\MSSQL\DATA\Northwind_0.LDF',
    NOUNLOAD, STATS = 10
    END

    Hello,
    The issue you are facing might be related to below link
    http://support.microsoft.com/kb/2487231/en-us
    As per link this is known issue.Can you please check service pack level of SQL Server 2008 .It should be SP3.Please apply SP3 and see if the error subsides.
    Also error suggests  logical file name 1 which you are giving is not part of the backup set from which you are trying to restore.You should first use below query to determine right file then proceed with restoration of the same.
    restore filelistonly from disk='C:\Program Files\Microsoft SQL Server\MSSQL10_50.SS2008\MSSQL\Backup\Northwind.bak'
    if file ID is 3 may be your restore script would be like below
    F DB_ID('Northwind') IS NULL
    BEGIN
    RESTORE DATABASE [Northwind]
    FILE = N'Northwind_Data'
    FROM
    DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SS2008\MSSQL\Backup\Northwind.bak'
    WITH FILE = 3,
    MOVE N'Northwind_Data'
    TO N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SS2008\MSSQL\DATA\Northwind.mdf',
    MOVE N'Northwind_Log'
    TO N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SS2008\MSSQL\DATA\Northwind_0.LDF',
    NOUNLOAD, STATS = 10
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • It can't find URL when i use HLS for vod and the vod file name contain Chinese.

    It can't find URL when i use HLS for vod and the vod file name contain Chinese。eg: http://127.0.0.1:8134/hls-vod/你好.mp4.m3u8.
    How does it support Chinese path?

    To answer the post title FireFox save all downloads automatically in the download folder, which you can find in the Documents folder. If you want to choose where to save your downloads go to tools>options>check always ask me where to save files.
    Secondly, I am assuming you have IE 8 installed as this is the only version that supports this fix that is currently not in beta. Go to control panel>internet options>advanced tab and reset the settings at the bottom. This may or may not fix the problem but it is a good first step.

  • When a user emails a form using a button, the spaces in the file name change to %20. How can I keep the spaces?

    The button is using javascript. I know I could use underscores and hyphens, but spaces would be best. All I see is how you can't use spaces in URLs, but this is a file name, so I don't understand why it converts it to %20.

    You cannot. the "%20" indicates the hexadecimal (base 16) character number for a space.

  • How to keep file name in print queue when printing crystal report

    We are using VB .Net 2003 + Crystal Report 2008 SP2 up to Fix Pack 2.6
    When the VB program spools crystal report files to print queue, the print queue only shows "Crystal Report" for each document.  How to keep the original file name?  In the past when we were using Crystal Report 11, the original file name can be shown in the print queue.
    Please help because it's so important for operation to see which report is failed in printing when reports are printed in batch.
    Thanks

    Hello,
    Set the PrintOption.JobTitle value for the print job. Here's C# code on how to:
                   System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
                CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
                CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
                   pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;          
                   rasPROpts.PrinterName = cboCurrentPrinters.Text;               
                   rasPROpts.PaperSize = (CrPaperSizeEnum)
                        pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
                // this sets the name of the print job
                rasPROpts.JobTitle = "MYPrintJob";
                   rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
                   MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Thank you
    Don

  • Keeping file names when rendering out DPX to QT

    I am trying to convert a dpx sequence to a quicktime to use for offline editing. When I export the files it does not keep the original file name. It replaces the file name with 1_g1, 2_g1 and so on. I cannot find a way to tell color to keep the orginal file name on export. I still new to Color , but I am quite familiar with encoding programs. Is there really not a way to keep the meta data including the original file name when exporting files?

    There's a Chapter on this in the online Color Help...

  • Using Spry.Data.XMLDataSet. Can xml file name be set to change on calendar date?

    I have a website that uses Spry Data XML DataSet to list common pests for the current month. http://www.shspestcontrol.com/
    Each month's list of pests is in a separate xml file (e.g. pests-august.xml)
    Rather than manually updating the file name each month, can it be setup to automatically change the name
    For instance on January 1st, file name changes to pests-january.xml, Feb 1st changes to pests-february.xml. etc.
    <script type="text/javascript">
    <!--
    var dsPests1 = new Spry.Data.XMLDataSet("xml_files/pests-august.xml", "gallery/pests/pest");
    //-->
    </script>
    Any advice if this can be done and if so how to go about doing it would be much appreciated
    Thanks, Toni

    <script>
    var dsPests1 = new Spry.Data.XMLDataSet("pests-september.xml", "gallery/pests/pest");
    function setPestsFile(){
        var months = new Array(13);
            months[0]  = "january";
            months[1]  = "february";
            months[2]  = "march";
            months[3]  = "april";
            months[4]  = "may";
            months[5]  = "june";
            months[6]  = "july";
            months[7]  = "august";
            months[8]  = "september";
            months[9]  = "october";
            months[10] = "november";
            months[11] = "december";
        var now = new Date();
        var monthnumber = now.getMonth();
        var monthname = months[monthnumber];
        dsPests1.setURL("pests-"+monthname+".xml");
        dsPests1.loadData();
    window.onload = setPestsFile();
    </script>

  • Using System::StartTime in variable for external file name comes out incorrect sometimes

    Hi All,
    I have an interesting dilemma.  I'm using SQL Server 2005 with Visual Studios 2005 (9.00.4035.00).
    I'm writing records from my database table out to an external flat file, nothing fancy other than in the naming of the file being dynamic and using system time.  So I have a couple of variables set:
    CR_Dir = \\host\directory\
    CR_Outfile = "AP_" +  (DT_WSTR, 4)  YEAR( @[System::StartTime] ) + RIGHT("0" + (DT_WSTR, 2) MONTH(@[System::StartTime] ),2) + RIGHT("0" + (DT_WSTR,2) DAY( @[System::StartTime] ),2) + RIGHT("0"
    + (DT_WSTR,2) DATEPART("Hh", @[System::StartTime] ), 2) + RIGHT("0" + (DT_WSTR,2) DATEPART("mi", @[System::StartTime] ),2) + RIGHT("0" + (DT_WSTR,2) DATEPART("ss", @[System::StartTime] ),2)
    + "_chref"
    And then in my Connection Manager properties I have an expression that brings them all together with a file extension:
    @[User::CR_Dir] +  @[User::CR_Outfile] + ".ctl"
    So what I should get for example is something like AP_20140309214502_chref.ctl  (if the job was run on 03/09/2014 @ 9:45pm) When executed properly.  I do this for two flat files one with an extension of .txt and the other with .ctl. 
    These steps are working fine the majority of the time.
    However, my problem is that occasionally, the portion of the filename that contains the datetime stamp is completely incorrect for one of the two files that are created during the same time frame.  And I'm not talking about a few seconds or even a minute
    or two, the date is off by weeks.  Here's an example:
    AP_20140309214502_chref.txt
    AP_20140213152253_chref.ctl
    This has happened twice since starting to run this job over the past four months, once on 12/15/2013 and again 03/09/2014.  This job is run every night at 9:45pm, and all the other days that this job runs the two filenames come out perfectly. 
    So I'm leaning towards something in the system that may be corrupting my variable every once in a while?  But because it happens intermittently how can I verify this?  Or is there a better way to perform what I'm trying to do that would be more accurate
    and consistent?
    Any help would be appreciated.
    Thanks
    Sawyer

    Hi All,
    I haven't found a solution to this issue.  I'm not actually able to reproduce it at will, so it's hard to troubleshoot.  What I've decided to do is rewrite my variable expression and make one system call for date and time and place it into
    a variable and then use the variable to build the file name.  Also I changed from using the System::Startime to using the GFETDATE() function (Don't know if this helps but it was easier to use in my substring when I parsed out the different time elements:
    v_DATETIME   STRING   SUBSTRING((DT_STR,30, 1252)GETDATE(), 1, 19)
    CR_Outfile      STRING   "AP_" + SUBSTRING(@[User::v_DateTime],1 ,4 ) + SUBSTRING(@[User::v_DateTime],6 ,2) + SUBSTRING(@[User::v_DateTime],9 ,2) + SUBSTRING(@[User::v_DateTime],12, 2) + (@[User::v_DateTime],15 ,2) + SUBSTRING(@[User::v_DateTime],18,2)
    + "_chref"
    I don't want to leave this thread as unanswered for too long so I'll give it another day or two and then close it.  I'll report back in a few months to let you all know if this problem has reoccurred or not.
    Thanks for the assistance.
    Sawyer

  • Keeping file name in picture package

    Hi guys,
    iam struggling through picture package at the moment,
    what i would like to do is to keep the original file name in picture package then when the new files are generated not have to type the old name back in some of the names can be quite elaborate.
    Ny62456_IMG for instance i don't mind dropping the IMG but want to keep the file names
    thanks
    Nik

    the images are coded
    so that i know where they come from for instance the filename will start with the schools name SK then the yearY6 then the jpeg number the filename would be SKY62109 therefore i know where it has to be sent.
    Maybe i am talking complete nonsense to you but in photoshop it works to a reasonable standard and each image is copied and then copy is generated by photoshop after each image. Its just that photoshop is not quick enough or stable enough to process a lot of images
    If i exported the file then it would retain the filename
    If you can think of a better way of doing this then please tell me i actually started playing with lightroom last saturday so am a beginner
    Nik

  • Finder unable to sort file name in Column mode

    Hi Guys,
    About 2 weeks ago suddenly Finder are unable to sort files in alphabetical order in Column mode.
    About the same time when my external HDD died (don't know whether this has any effect).
    Sorting by name works fine in icon only mode, but whenever I switch to Column mode its completely disorganized.
    And when I tried in coverflow mode its alphabetical but in inverted mode (Z to A).
    I tried verifying disk permission and repairing it to no effect.
    Any clues on how to fix this?
    Thanks,
    Jeff

    This fixed it: http://inner.geek.nz/archives/2011/08/10/howto-fix-file-sorting-in-finders-colum n-view-on-mac-os-x-lion/
    This problem has been bugging me forever!

  • How to keep file name on "Insert as new"

    If a record has a related file, the file-name is stored in a field of that record.
    When you open the record and choose "Insert as new" everything is copied to a new record, except this file-name.
    How to save this file-name too?
    thanx

    Hello,
    Set the PrintOption.JobTitle value for the print job. Here's C# code on how to:
                   System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
                CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
                CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
                   pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;          
                   rasPROpts.PrinterName = cboCurrentPrinters.Text;               
                   rasPROpts.PaperSize = (CrPaperSizeEnum)
                        pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
                // this sets the name of the print job
                rasPROpts.JobTitle = "MYPrintJob";
                   rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
                   MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Thank you
    Don

  • Unable to change file name in Metadata pane - Lightroom 2

    I can't seem to activate the file name area in the Metadata pane in the Library module. It is solid gray and I cannot make the area active. With the correct folder active, the files seem to be normal in all visible ways, but the ability to change the name is not available. This is true in Grid or Loupe views. It is true with only one Active image. Any thoughts?

    Are the images on-line? Though that shouldn't make a difference. You should still get a non-grayed out filename and get a warning dialog, instead if you try to set a name change.
    Don

  • How to keep file name formatted?

    I need to generate  .xlsx file as reporting purpose without renamed for
    example :- File names end with YYYYMMDD format for the day they are generated.
    Is that possible I can set up that kind of job? 

    see
    http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for

  • HP Touchsmart 600 - 1050 PC Recovery Disc or Media NEEDED as soon as possible

    1/10/15 I am praying for FAVOR with HP (Supervisor) and that you can HELP me! I MISS my desktop, I am typing from my old HP compaq laptop, running Windows XP. I have a out of warranty - HP Touchsmart 600 PC  (600-1050) Windows 7 Home Premium 64 bits.

  • After upgrading to Lion my iMac Intel 3.0 GHz

    My iMac now starts with a new screen which demands a User Name and password. How do I get back to just starting up to the screen which is ready to use? Also, everything has slowed down. Internet access using Australian Telstra 3G Broadband USB modem

  • Originals disappeared after renaming project

    Hello! After the import from a SD-card into a new project in Aperture I have a) firstly deleted the photos (****!), then ... b) created some new projects and finally ... c) moved the initial photos from the new project into the other projects. The re

  • Dynamic date range

    I'm on ECC6.0, and looking to set up a dynamic date range in a variant. The date range is a select-option on my selection screen. I can easily setup the dynamic date for the 'low' value in the range, but I can see no way to also declare a dynamic dat

  • How to let SOA Suite automatically start Oracle Database services if necess

    It occurs from time to time that I forget to start Oracle database services before I start Soa Suite. Can I somehow let SOa Suite startup script check in advance if Oracle database services need to be started (and start them automatically if necessar