IPhoto Import Script

I am attempting to write a script (droplet) that when I drop a folder on it, it will import the photos in that folder into iPhoto into an album name that is the name of the folder I dropped on it. Here is what I have so far:
--on open (this_folder)
tell application "Finder"
set this_folder to name of (choose folder)
set AlbumName to this_folder
end tell
tell application "iPhoto"
activate
if not (exists (album AlbumName)) then
new album name AlbumName
end if
set the_album to album AlbumName
import from this_folder to the_album without force copy
end tell
--end open
I have a question about the "on open" piece. If I uncomment it out and change the (choose folder) to this_folder, I get the error "can't get name of alias...", but as it is above it can get the name of the alias.
How do I turn what I have into what I need?

on open (dragged_Items) -- 'dragged_Items' assumes a list of folders only.
tell application "iPhoto" -- Use 'iPhoto' commands.
activate -- Launch and bring forth 'iPhoto'.
repeat with i in dragged_Items -- Cycle through list of dragged items.
-- Obtain name of item i..
tell application "Finder" to set folder_Name to (name of i)
display dialog folder_Name
-- Create new album (based on dragged folders' name) if not already exists.
if not (exists (album folder_Name)) then new album name folder_Name
-- Import 'this_folder's contents.
import from i to album folder_Name without force copy
end repeat
end tell
end open
  Mac OS X (10.4.4)  

Similar Messages

  • Front end application error after import script run successfully in R12

    Hi ,
    i got an exception in R12 environment.
    i developed one simple OAF page and deployed in apps import script run successfully.
    but when i am opening that page in Front end it will give an exception.
    That is
    Exception Details.
    oracle.apps.fnd.framework.OAException: Could not load application module 'tflsm.oracle.apps.po.per.server.TflsmAM'.
    ## Detail 0 ##
    JBO-30003: The application pool (cph-oadb-tst22.dk.flsmidth.netTST221543tflsm.oracle.apps.po.per.server.TflsmAM) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg=JBO-25002: Definition tflsm.oracle.apps.po.per.server.TflsmAM of type ApplicationModule not found
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg=JBO-25002: Definition tflsm.oracle.apps.po.per.server.TflsmAM of type ApplicationModule not found
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
    ## Detail 0 ##
    oracle.jbo.NoDefException: JBO-25002: Definition tflsm.oracle.apps.po.per.server.TflsmAM of type ApplicationModule not found
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:441)
    JBO-30003: The application pool (cph-oadb-tst22.dk.flsmidth.netTST221543tflsm.oracle.apps.po.per.server.TflsmAM) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg=JBO-25002: Definition tflsm.oracle.apps.po.per.server.TflsmAM of type ApplicationModule not found
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg=JBO-25002: Definition tflsm.oracle.apps.po.per.server.TflsmAM of type ApplicationModule not found
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
    ## Detail 0 ##
    oracle.jbo.NoDefException: JBO-25002: Definition tflsm.oracle.apps.po.per.server.TflsmAM of type ApplicationModule not found
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:441)
    i will check all the class files and xml files of Application Module below top, all are there in the server top(below top)
    /u02/TST22/apps/apps_st/comn/java/classes/xxfls
    but i got the exception.
    is there any different structure in R12.
    i.ein the server top /u02/TST22/apps/apps_st/comn/java/classes/xxfls (Here my all class files in Binary mode and xml files in ASCII mode)
    only CLASS files are needed or XML files are also need.(i am moving all CLASS and XML files)
    could you please help me on this.
    Thanks with Regards,
    Muthu

    Muthu,
    This issue usually occurs when the AM.class file is not available at the given location. Try to find out on the server whether this
    tflsm.oracle.apps.po.per.server.TflsmAM exists.
    If still the problem persists then go for redeployement by deleting the existing one.
    Regards,
    Gyan

  • Using FDM to load data from oracle table (Integration Import Script)

    Hi,
    I am using Integration Import Script to load data from oracle table to worktables in FDM.
    i am getting following error while running the script.
    Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done
    Attaching the full error report
    ERROR:
    Code............................................. -2147217887
    Description...................................... Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    At line: 22
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 6260
    IDENTIFICATION:
    User............................................. ******
    Computer Name.................................... *******
    App Name......................................... FDMAPP
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... DBNAME
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... SCRTEST
    Location ID...................................... 750
    Location Seg..................................... 4
    Category......................................... FDM ACTUAL
    Category ID...................................... 13
    Period........................................... Jun - 2011
    Period ID........................................ 6/30/2011
    POV Local........................................ True
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    I am using the following script
    Function ImpScrTest(strLoc, lngCatKey, dblPerKey, strWorkTableName)
    'Oracle Hyperion FDM Integration Import Script:
    'Created By:     Dhananjay
    'Date Created:     1/17/2012 10:29:53 AM
    'Purpose:A test script to import data from Oracle EBS tables
    Dim cnSS 'ADODB.Connection
    Dim strSQL 'SQL string
    Dim rs 'Recordset
    Dim rsAppend 'tTB table append rs object
    'Initialize objects
    Set cnSS = CreateObject("ADODB.Connection")
    Set rs = CreateObject("ADODB.Recordset")
    Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
    'Connect to SQL Server database
    cnss.open "Provider=OraOLEDB.Oracle.1;Data Source= +server+;Initial Catalog= +catalog+;User ID= +uid+;Password= +pass+"
    'Create query string
    strSQL = "Select AMOUNT,DESCRIPTION,ACCOUNT,ENTITY FROM +catalog+.TEST_TMP"
    'Get data
    rs.Open strSQL, cnSS
    'Check for data
    If rs.bof And rs.eof Then
    RES.PlngActionType = 2
    RES.PstrActionValue = "No Records to load!"
    Exit Function
    End If
    'Loop through records and append to tTB table in location’s DB
    If Not rs.bof And Not rs.eof Then
    Do While Not rs.eof
    rsAppend.AddNew
    rsAppend.Fields("PartitionKey") = RES.PlngLocKey
    rsAppend.Fields("CatKey") = RES.PlngCatKey
    rsAppend.Fields("PeriodKey") = RES.PdtePerKey
    rsAppend.Fields("DataView") = "YTD"
    rsAppend.Fields("CalcAcctType") = 9
    rsAppend.Fields("Amount") = rs.fields("Amount").Value
    rsAppend.Fields("Desc1") = rs.fields("Description").Value
    rsAppend.Fields("Account") = rs.fields("Account").Value
    rsAppend.Fields("Entity") = rs.fields("Entity").Value
    rsAppend.Update
    rs.movenext
    Loop
    End If
    'Records loaded
    RES.PlngActionType = 6
    RES.PstrActionValue = "Import successful!"
    'Assign Return value
    SQLIntegration = True
    End Function
    Please help me on this
    Thanks,
    Dhananjay
    Edited by: DBS on Feb 9, 2012 10:21 PM

    Hi,
    I found the problem.It was because of the connection string.The format was different for oracle tables.
    PFB the format
    *cnss.open"Provider=OraOLEDB.Oracle.1;Data Source= servername:port/SID;Database= DB;User Id=aaaa;Password=aaaa;"*
    And thanks *SH* for quick response.
    So closing the thread......
    Thanks,
    Dhananjay

  • Subtracting Columns from Import File Using Import Script

    The file I am importing to FDM contains two amount columns, 1 Debit, 1 Credit. I want to have the Amount field populate as the Debit minus Credits. I have attempted an import script that is giving me an error in the bolded line:
    Function GBS_Amount(strField, strRecord)
    'Oracle Hyperion FDM Integration Import Script:
    'Created By:     
    'Date Created:     
    'Purpose:
    'Set variables
    dim strNatural
    dim strCurmnthDR
    dim strCurmnthCR
    dim strCurAmount
    'Store the Natural Account as Column 1 of 11 of a comma delimited file
    strNatural = Trim(DW.Utilities.fParseString(strRecord, 11, 1, ","))
    'Store the Current Month Debit Amount as Column 7 of 11 of a comma delimited file
    strCurmnthDR = Trim(DW.Utilities.fParseString(strRecord, 11, 7, ","))
    'Store the Current Month Credit Amount as Column 8 of 11 of a comma delimited file
    strCurmnthCR = Trim(DW.Utilities.fParseString(strRecord, 11, 8, ","))
    'Calculate the YTD Amount
    strCurAmount = strCurmnthDR - strCurmnthCR
    GBS_Amount = strCurAmount
    End If
    End Function
    What syntax do I need to use to subtract two defined variables?

    Hi Experts,
    I have a similar situation,I am trying to import the Multiple amount columns to be addedd and imported as one amount column.Below is the script I am using for the same,script is getting verified in Script editor but When I am trying to Load the File in import, I am gettig an error as below.but if I try to import without using the script for the amount, inport is getting done.I have attached script to amount column only.
    ERROR
    Code............................................. 9
    Description...................................... Subscript out of range
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 8380
    Scirpt being used
    Function Import_YTD(strField, strRecord)
    'Set variables
    dim strCurmnth1
    dim strCurmnth2
    dim strCurmnth3
    dim strCurmnth4
    dim strCurmnth5
    dim strCurmnth6
    dim strCurmnth7
    dim strCurmnth8
    dim strCurmnth9
    dim strCurmnth10
    dim strCurmnth11
    dim strCurmnth12
    dim strCurAmount
    strCurmnth1 = Trim(DW.Utilities.fParseString(strRecord, 20, 9, ","))
    strCurmnth2 = Trim(DW.Utilities.fParseString(strRecord, 20, 10, ","))
    strCurmnth3 = Trim(DW.Utilities.fParseString(strRecord, 20, 11, ","))
    strCurmnth4 = Trim(DW.Utilities.fParseString(strRecord, 20, 12, ","))
    strCurmnth5 = Trim(DW.Utilities.fParseString(strRecord, 20, 13, ","))
    strCurmnth6 = Trim(DW.Utilities.fParseString(strRecord, 20, 14, ","))
    strCurmnth7 = Trim(DW.Utilities.fParseString(strRecord, 20, 15, ","))
    strCurmnth8 = Trim(DW.Utilities.fParseString(strRecord, 20, 16, ","))
    strCurmnth9 = Trim(DW.Utilities.fParseString(strRecord, 20, 17, ","))
    strCurmnth10 = Trim(DW.Utilities.fParseString(strRecord, 20, 18, ","))
    strCurmnth11 = Trim(DW.Utilities.fParseString(strRecord, 20, 19, ","))
    strCurmnth12 = Trim(DW.Utilities.fParseString(strRecord, 20, 20, ","))
    If strCurmnth1="" Then strCurmnth1="0" End If
    If strCurmnth2="" Then strCurmnth2="0" End If
    If strCurmnth3="" Then strCurmnth3="0" End If
    If strCurmnth4="" Then strCurmnth4="0" End If
    If strCurmnth5="" Then strCurmnth5="0" End If
    If strCurmnth6="" Then strCurmnth6="0" End If
    If strCurmnth7="" Then strCurmnth7="0" End If
    If strCurmnth8="" Then strCurmnth8="0" End If
    If strCurmnth9="" Then strCurmnth9="0" End If
    If strCurmnth10="" Then strCurmnth10="0" End If
    If strCurmnth11="" Then strCurmnth11="0" End If
    If strCurmnth12="" Then strCurmnth12="0" End If
    'Calculate the YTD Amount
    strCurAmount = CDbl(strCurmnth1) + CDbl(strCurmnth2) + CDbl(strCurmnth3) + CDbl(strCurmnth4) + CDbl(strCurmnth5) + CDbl(strCurmnth6) + CDbl(strCurmnth7) + CDbl(strCurmnth8) + CDbl(strCurmnth9) + CDbl(strCurmnth10) + CDbl(strCurmnth11) + CDbl(strCurmnth12)
    Import_YTD =strCurAmount
    End Function

  • FDMEE import script not working

    Hi,
    I had a simple import script in FDM Classic that was removing every lines of data from a source file for every amount lower than 0.50 and higher than-0.50.  The FDM Classic import script was:
    Function Remove_50(strField, strRecord)
    'Purpose: To skip lines of data  Between -0.50 AND
    0.50                
    If IsNumeric(strField) Then
       If Abs(strField) <= 0.50  Then
         RES.PblnSkip = True
       Else
         'Keep line:
         Remove_50 = strField
       End If
    End If
    End Function
    Now, I have to convert it to FDMEE Jython.  Here is my first try:
    def  PSA_Remove_50 ( strField, strRecord ):
    if abs(strField) <= 0.50:
    return 0
    else:
    return strField    
    Very simple import script but it is giving me a headache :Oo
    Thanks for your help!
    Dan

    I'd also say to stick with the BigDecimal data type unless you have a really good reason for using the float data type. If you start to multiply floats then you can end up with horrors like this if you're not careful where inaccuracies can start to creep in:
    >>> f = float(1.1)
    >>> f*1
    1.1
    >>> f*2
    2.2
    >>> f*3
    3.3000000000000003
    That's just something to be aware of if you decide to take the float route

  • How to use import script with FDM using adapter ERPI?

    Hi,
    I use FDM and ERPI 11.1.2 to load data from EBS R12 to Planning 11.1.2
    Data loaded from eBS are YTD data.
    I have seen that I could use an import script to calculate manually the amount with the periodic_net_cr and periodic_net_dr fields.
    But how to use this import script? Because in my import format in FDM, I don't use a file but directly the adapter, so no "Expression" field.
    Thanks in advance for your help
    Fanny

    Hello Fanny,
    No you will not need to put anything in the BatchAction. If you review the FDM API Documentation posted it will outline all the scripts that will execute for a particular event ... and the order in which they execute. The BatchAciton only affects the execution of the batch ... it does not control processing of data. Processing of data is controlled by many others.
    There is a script that can be written and placed (as Tony mentioned) in the ImportAction that will be able to recaculate the values from ERPi to be YTD values. You can possibly open an SR and a support Engineer can help you .... or you can search the current KM base and use that information there from the v11.1.1.3.00 version to build your own for v11.1.2.x
    Thank you,

  • Import script (SQL to FDM) - ConnectionRead error

    Hi,
    I have written an import script in FDM to load data from a SQL view. This script works fine when loading approx 5,000 rows, however, fails when trying to load 20k+ rows
    The error message I am receiving is:
    Detail: [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRead (recv()).
    At line: 72
    Line 72 = rs.movenext 'moves to the next record in the SQL view.
    I have tried ignoring a few columns in the import script (to reduce the data volume) - this works, however I need all columns.
    Below is a copy of the script:
    Function COG1_BrandPL(strLoc, lngCatKey, dblPerKey, strWorkTableName)
    Dim cnSS 'ADO connection object
    Dim strSQL 'SQL string
    Dim rs 'Source (Cognos) recordset
    Dim rsAppend 'FDM recordset
    'Initialize ADO objects
    Set cnSS = CreateObject("ADODB.Connection")
    Set rs = CreateObject("ADODB.Recordset")
    'Open FDM table recordset for appending
    Set rsAppend = DW.DataAccess.farsTableAppend(strWorkTableName)
    'Connect to SQL Server database
    cnSS.open "Driver={SQL Server};Server=XXXXXXXXX;OLE DB Services =-2;Database=XXXXXX;Uid=USER;Pwd=PASSWORD;"
    'Create SQL query string
    strSQL = "Select * FROM Corporate_PLUOP_view"
    'Open source recordset
    rs.Open strSQL, cnSS
    'Check for data in source system
    If rs.bof AND rs.eof Then
    RES.PlngActionType = 2
    RES.PstrActionValue = "No records to load!"
    COG1_BrandPL = False
    Exit Function
    End If
    'Loop through source records and append to FDM table
    If Not rs.bof And Not rs.eof Then
    Do While Not rs.eof
    rsAppend.AddNew
    rsAppend.Fields("PartitionKey") = RES.PlngLocKey
    rsAppend.Fields("CatKey") = lngCatKey
    rsAppend.Fields("PeriodKey") = dblPerKey
    rsAppend.Fields("DataView") = "YTD"
    'From Cognos
    rsAppend.Fields("UD3") = rs.fields("Cube").value
    rsAppend.Fields("Entity") = rs.fields("Entity").value
    rsAppend.Fields("UD1") = rs.fields("Custom1").value
    rsAppend.Fields("Account") = rs.fields("Account").value
    rsAppend.Fields("ICP") = rs.fields("ICP").value
    rsAppend.Fields("UD2") = rs.fields("Custom2").value
    rsAppend.Fields("Amount") = rs.fields("QPR_Value").value
    rsAppend.Update
    rs.movenext
    Loop
    End If
    rs.close
    cnSS.close
    'Assign Return value
    COG1_BrandPL = True
    End Function
    The only other thing I have tried is copying and pasting the script to Excel.... This works for ALL rows... so seems to be a communication issue between FDM and SQL?
    Any ideas?

    Bit more info:
    I am using FDM 9.3.1
    SQL Server 2005 on Windows 2003 Enterprise x64
    Here's a copy of the FDM error log:
    ** Begin FDM Runtime Error Log Entry [2010-01-13-12:14:55] **
    ERROR:
    Code......................................... -2147467259
    Description.................................. [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRead (recv()).
    At line: 75
    Procedure.................................... clsImpProcessMgr.fLoadAndProcessFile
    Component.................................... upsWObjectsDM
    Version...................................... 931
    Thread....................................... 12432
    IDENTIFICATION:
    User......................................... HFM-Cognos1
    Computer Name................................ DEFMDHY9A01
    App Name..................................... CognosTest
    Client App................................... WebClient
    CONNECTION:
    Provider..................................... ORAOLEDB.ORACLE
    Data Server..................................
    Database Name................................ HFM9UAT
    Trusted Connect.............................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location..................................... COGNOS1
    Location ID.................................. 750
    Location Seg................................. 3
    Category..................................... ACTUAL
    Category ID.................................. 13
    Period....................................... Jun - 2009
    Period ID.................................... 30/06/2009
    POV Local.................................... False
    Language..................................... 1033
    User Level................................... 1
    All Partitions............................... False
    Is Auditor................................... False
    Edited by: PaulScrivens on 13-Jan-2010 03:26

  • FDM Import Script

    Hi,
    i'm new making import scripts to FDM. I m making an integration script between SAP and FDM. I m getting information from via web FDM, the problem is when i a m trying to add this information to the workTable. The code is as follows:
    for i = 0 to tData.Rowcount
    Set rsAppend = DW.DataAccess.farsTable(strWorkTableName1)
    rsAppend.AddNew
    rsAppend.Fields("PartitionKey") = RES.PlngLocKey
    rsAppend.Fields("CatKey") = RES.PlngCatKey
    rsAppend.Fields("PeriodKey") = RES.PdtePerKey
    rsAppend.Fields("DataView") = "YTD"
    rsAppend.Fields("Entity") = arrayResult(19)
    rsAppend.Fields("Account") = arrayResult(0)
    rsAppend.Fields("Desc1") = arrayResult(0)
    rsAppend.Fields("ICP") = "[None]"
    rsAppend.Fields("Amount") = saldoTotal
    rsAppend.Update
    next
    Whe i execute this script i just receive an error message saying: "Error: Import Failed", nothing appears in the Error log, neither in the work table.
    Can anyone help me? Does anybody know what can i do to add these records in the work table?
    Thanks in advance.
    Regards.

    How are you getting the table name for variable strWorkTableName1?
    I'd suggest taking another look at the admin guide. There is an example import integration script in that document.

  • FDM import script with selectable source file

    Hi All,
    I would like to build an import script attached to an import format that imports a text file with multiple value columns.
    Source file:
    Entity, Detail, Account 1, Account 2
    E_abc, D_abc, 100, 200
    In FDM this needs to be:
    Entity, Detail, Account, Amount
    E_abc, D_abc, Account 1, 100
    E_abc, D_abc, Account 2, 200
    So i need to loop through the file.
    My biggest challenge is that when i attach a script to an import format in the import process i cannot select a file from inbox anymore, it has to be a pre-defined file.
    Has someone an example or solution how to make a script-import format and enable the select file from inbox?
    And if possible has someone an example script of the issue stated above?
    Thanks in advance,
    Marc

    Hi Wayne..
    Thanks for your reply (and sorry for the delay in mine).
    Could you tell me what script to use to open the file in the befImport script, or how to rename the file in memory to a new one?
    So i write a script that rewrites the file to a new file in the inbox but i need to tell FDM that it needs to process this new file.
    Thanks,
    Marc

  • How do I get photos from the iPhoto import folder to the iPhoto library?  It uploaded, but hung while deleting from my camera, so no imported photos are in the iPhoto library.

    How do I get photos from the iPhoto import folder to the iPhoto library?  It uploaded, but hung while deleting from my camera, so no imported photos are in the iPhoto library.  I watched it upload about 400 photos, one by one.  They're somewhere, but they don't appear in the iPhoto library. As iPhoto was deleting them from my camera, it got hung up, then a message came "you should eject before disconnecting a device."  I hadn't touched the camera.  The message came by itself.  I couldn't get iPhoto to respond, so I disconnected the camera and did a Force Quit.  Opening it back up, the pictures were gone.  Can somebody help me? 

    What version of iPhoto are you running?  Assuming it's iPhoto 9 or later Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Import Script to skip first 6 lines of a txt file

    Hello,
    Can anybody help me here? I am looking for an Import Script in Upstream that will ignore the first 6 lines of the TXT file I am importing. FYI - The first 6 lines is the header and I don't want this to be imported as it results in error.
    Can you help? Thanks,
    James

    Even with fixed format files you shouldn't be getting error for the header lines in the file because there is no amount in those lines,, however if you are still getting the error, you can try this, it may help,
    There are temporary variables you can use for this kind of needs: RES.PvarTemp1 to 5
    so, you will need to put a script in amount field, let's say "getLineNumber"
    function getlinenumber
    If Len(RES.PvarTemp1) <= 6 Then
    RES.PvarTemp1 = RES.PvarTemp1 & "1"
    RES.PblnSkip = True
    End If
    end function
    this should do the work, if you are using RES.PvarTemp1 for other purposes in your scripts, use another temp variable.
    hope this helps
    Bulent
    Edited by: Bulent Yildiz on Oct 26, 2009 4:59 PM
    Edited by: Bulent Yildiz on Oct 26, 2009 5:02 PM

  • Problems with import script on Firefox 3.6.3

    Hi all,
    I have just started using Firefox after hearing so much good about it. Unfortunately, I am disappointed to find it just cannot import all of my cookies, bookmarks, etc. from IE 6.0.2900.5512. I am on Win XP SP3.
    When I try and import into Firefox, it keeps telling me the import scripts foe each one are unresponsive. Are there any patches to get this to work?
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705)

    See http://kb.mozillazine.org/accessibility.tabfocus
    Note: In OS X (as of 2005-01), if this preference is not explicitly set, the “Full Keyboard Access” setting in System Preferences will be honored. All builds before that date (e.g., Firefox 1.0.x) will ignore that setting.

  • Iphoto import creating and importing duplicates/ios8

    I'm using iphoto 9.4.3 and my iphone 5s with ios8.  Since septemberish (ios8 update), it's been double-importing all my pix on from my iphone - none are showing up as duplicates on the phone but import/iPhoto view shows and imports them all twice.  All images come in as img_1234 and img_1234_2 for example.
    Can't figure out why this is but it's a pain - I'm using third party software to scrub duplicates from the library after the fact but is anyone else having this problem?

    I've got this same problem. Didn't see this thread before I posted mine (Re: iPhoto imports 2 of every photo - iPhone 6).
    I've tried:
    Hard restart iPhone
    Updated iPhoto (9.6)
    Updated OSX (10.10)
    Updated iOS (8.1.1)
    Nothing has worked; I get two of every photo and video imported into iPhoto.
    Has anyone else solved this issue? It's not a huge problem; more like an annoyance.

  • IPhoto import Browser failure, after security update?

    Hi, Anyone else had this problem?
    iPhoto import Browser failure.
    No Events or Albums show, although PhotoBooth is visible, error message 'Open iPhoto 5 or later to see photos...'
    This used to work, but not since installing Security Update 2010-006 (1.0),
    with "iTunes" (10.0.1) and JavaForMacOSX10.6Update3.
    Using iPhoto '09 (8.1.2), iMovie '09 (8.0.6).
    Heard mention that now only alpha-numeric characters are allowed for file names and titles, so started replacing "&", apostrophes, etc. But there are a LOT of photos to change!
    Console shows:
    [0x0-0x15015].com.apple.iPhoto[264]
    MRMovieServer[273] <Error>: kCGErrorFailure
    Tried repairing permissions, but got a warning about a SUID file has been modified and will not be repaired, (not sure if this is relevant).
    Removed com.apple.iApps.plist and com.apple.iMovie8.plist, which then gave a slightly different view of the browser in iMovie.
    Can no longer drag items from iPhoto either!
    Any ideas of how to proceed (and remain sane)?

    Hi,
    I've had something like this, since October.
    Firstly, In the Utilities folder, open Disk Utility, select the disk where the Applications are (Main hard disk) click First Aid, then "Repair Permissions". Leave it running with nothing else open.
    When finished, open iMovie, click the photo browser icon, any luck?
    Seen an Apple support doc 'Cannot see iPhoto in other Apps', basically you may be right about ampersands & apostrophes.
    In iPhoto, look at all your smart album names for non-alpha-numeric characters, and replace or delete the possible culprits. I had lots of these, including brackets (which were not a problem until recently). Keep checking your smart albums to find others, such as these: !@£$%^&()[]{}'\"|~.
    Quit iPhoto and all other iLife Apps, then in your home folder, Library, Preferences, move 'com.apple.iApps.plist' to the desktop (this will be recreated when you next open an iApp/iLife application, such as iPhoto).
    You may need to remake the iPhoto AlbumData.xml file, after all that name editing. See later.
    Open iMovie and click the photo browser icon, if you still get the message, rather than Albums and Events, Quit iMovie.
    Open iPhoto, double check your source list for folders which you may have smart albums in, (click the triangle to the left of any folders that you've made to reveal their contents). Repeat the search and replace of special characters. I'd missed a few, hiding in folders.
    Now would be a good time to remake the iPhoto 'AlbumData.xml' file.
    Quit all applications, go to your Pictures folder, iPhoto Library, ctrl-click, 'Show package contents', drag 'AlbumData.xml' to the desktop.
    Close the finder windows.
    Open iPhoto, create a new album, then Quit, (this should remake the xml file).
    Open iMovie again and click the photo browser icon. This is the point where I had success, I hope it works for you as well.
    All the best, Ian

  • Import script to remove zeros in Account field

    Dear FDM Experts,
    The problem is our source system always extracts 10 characters but we use 7 characters in HFM.
    Example, Account 0001201010 (10 characters) must be 1201010 (7 characters).
    I want to write an Import Script to remove, if any, all zeros from the left side of the account value at the import stage. We have no Accounts beginning with 0.
    Thanks in advance for your help,
    Carsten

    Thanks! But I got an error message:
    ** Begin FDM Runtime Error Log Entry [2012-04-17-13:24:10] **
    ERROR:
    Code............................................. 13
    Description...................................... Type mismatch: 'FormatNumber'
    At line: 14
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1111
    Thread........................................... 2164
    Could you provide me with the full script?

Maybe you are looking for

  • Problem with iPhoto 1.1.1

    Just imported my vacation pictures, but they showed up in the Photo Library not in the Last Import File. In addition, I am unable to drag and drop pictures from the Photo Library to to new or old albums and once I exit and re enter iPhoto the picture

  • Synchronous SOAP sender

    HI Guys, I had created a synchronous SOAP sender adapter (Webservice -> RFC), the interface is working and it is updating the records in SAP using RFC but iam not getting the response back from SAP. And the other thing which i noticed is when i chang

  • Finding Manager for a pernr

    Hi Everyone, Can anyone plz. help me how to find manager for a given PERNR?

  • Providers co-existing

    This is from the JMS specification: A provider must be prepared to accept, from a client, a message whose implementation is not one of its own. A message with a �foreign� implementation may not be handled as efficiently as a provider�s own implementa

  • Removing specified between characters

    Hi, i want to remove between 0's from 'ODBILL000000000000000000001013' i want 'ODBILL1013' string can be 'ODBILL000000000000000000011014' then i want 'ODBILL11014'