Java script no longer working

On my BB8530 w/Virgin Mobile, I changed my BB ID today, I have latest updates etc.I received the email to confirm my changes, clicked on the address it sent me, went to the page and got an error message saying java sript was no longer available on my device. Has anything like this happened to anyone else before? Please help if you have a solution. I went to java.com and they do not let consumers download java for mobile devices. Thank you in advance for your help! NorthwestSue

Hi NorthwestSue and welcome to the BlackBerry Support Community Forums!
I would just like you to clarify which changes you made before getting the email.  Did you try to confirm these changes via your BlackBerry® smartphone or via your computer?
Thanks.
-CptS
Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

Similar Messages

  • I upgraded to Firefox 8.0 and java script no longer works. I set the options to allow java script in the tools/options to allow java script but it still doesn't work. Are there any fixes?

    I support several web sites that I developed for clients and I use java script to manage/show slide shows. After upgrading to 8.0 my scripts don't load. When I click on preview on my web development tool my page will not load the java script - nothing shows on te screen. All used to work OK and still works in IE.

    Thanks for the response, Karsten,
    However, no Divx 5 Component but I did have a Divx Decoder Component and a Divx 6 Decoder Component, so I tried what you suggested anyway with those but to no avail.
    Still not working!
    Regards,
    John

  • Java script will not work after creating new page

    I am using dreamweaver cs3 and have a java script to rotate a banner in a template.  This script has worked fine in the past when I created pages in Dreamwever.  Now the  script works fine only when I test it in a template but when I try to upload to my ISP the script will no longer work.  At first I thought it was the ISP made changes but the person who sits next to me running the same version of Dreamweaver can create a page and the java works.  The java is placed in a template, tested by viewing in a brower and it works, however once I try to create a new page using the template the scriipt will not work.  To get around this I have the person sitting next to me save my template and then I can create pages.  Also if I save the template with my pc and it updates the pages created by the template the java will no longer work.
    This is very frustrating as I cannot create or modify my template on this pc.  What would prevent this from working?

    OK - now we are on to something ..... the script on the template only contains:
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
    MM_swapImage('rotator', '', imgs[counter++]);
      setTimeout('randomImages()', delay);
    However when I create a new page from the template with this javascript in it the code changes to:
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
    MM_swapImage('rotator', '', imgs[counter++]imgs[i]);
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
    MM_swapImage('rotator', '', imgs[counter++]);
      setTimeout('randomImages()', delay);

  • Script no longer working under Maverick

    I just upgraded to Maverick over the weekend and I can not figure out why this script no longer works.  It has been working for the last 5 years.
    The script moves a file my server sends per e-mail to a folder on a partition on my Mac.  Here is the script.
    tell application "Microsoft Outlook"
              set selectedMsg to (current messages)
              set selectedMsg to item 1 of result
              set msgAttachment to attachments of selectedMsg
              set msgAttachment to result's item 1
              set attachmentName to name of msgAttachment
              set attachmentFile to ((path to desktop) & attachmentName) as text
      save msgAttachment in attachmentFile
    end tell
    delay 3
    set submitfolder to "OS E:Users:e:Desktop:" as alias
    set collectionfolder to "/Volumes/Data E/Consulting/Telephone Switch Record/2014" as alias
    tell application "Finder" to move (every file whose name contains ("week ") & (do shell script "date +%U")) to collectionfolder
    delay 2
    tell application "Finder" to move (every file whose name contains ("week ") & (do shell script "date +%U")) to trash
    I now get:
    If I run:
    tell application "Finder"
              open ("/Volumes/Data E/Consulting/Telephone Switch Record/2014" as POSIX file)
    end tell
    it opens the folder no problem so the path must be ok?  or? 
    Any ideas why it is broken? 

    Are you getting the error on this statement
    set collectionfolder to "/Volumes/Data E/Consulting/Telephone Switch Record/2014" as alias
    or when you do the move? And what is the error number you are getting?
    Also try this
    set filePart to "week " & (do shell script "date +%U")
    log filePart
    tell application "Finder" to move (every file whose name contains filePart) to collectionfolder
    to see what the string looks like.

  • Java script is not working in custom tabular form

    hai all,
    i have changed my built in tabular form to custom tabular form.my java script is coding working fine in built in tabular form . But in my custom tabular form java script is not working ,since it is created as standard report(Display As).
    pls help me.
    with thanks and regards
    sivakumar.G

    Is the appostrophe function test(pthis) *'* present in your javascript code...
    If not can you post the same in apex.oracle.com and give the credential so that I can the why its not wroking
    Regards,
    Shijesh

  • Java Script doesn't work on Firefox 8?

    I have noticed that (some) Java Script does not work on Firefox 8.0. Is there a correction for this?

    Yep, go back to what works, appears to be the only real solution. But then you'd hardly be able to use Firefox as nothing is going to get fixed there only get broken.
    What does not work is
    # move, and resize of main window not allowed
    # that include wiping out a lot of keyword shortcuts that do that
    # various additional collateral damage
    The solutions (work arounds) that I can best offer are clumsy but can be found in
    * http://kb.mozillazine.org/Resizing_oversize_window#JavaScript_no_longer_allowed_to_resize_windows

  • Scripts no longer working via Bridge

    For some reason, scripts no longer works in Bridge CS4.
    I've previously installed "Dr. Brown's services" scripts which is available in the "Tools" menu of Bridge. However, when I select some files, then choose this script Photoshop starts up, but nothing more happens.
    The same goes for the "Tools"-"Photoshop" menu (Batch, Image processor etc.). Photoshop CS4 starts up but nothing else happens.
    However, if I do the same thing in Photoshop itself ("File"-"Scripts") it works fine, so the scripts themselves are working, or so it seems.

    If for some reason Bridge suddenly behaviors other then before the first
    thing to try is a restart for Bridge holding down option key to refresh the
    preferences. Set Prefs again to your wishes and try again.
    For some reason, scripts no longer works in Bridge CS4.

  • After upgrade Script No Longer Works

    After I upgraded CS4 to .605 my script no longer works. I get:
    Error Number:45
    Error String: Object is Invalid
    Line 12
    Source: myParStyle.baselineshift = -1;
    Here are my first 12 lines:
    var doc = app.documents[0]
    var color = doc.colors.item("C=100 M=65 Y=0 K=0");
    var inlines = doc.stories.everyItem().textFrames.everyItem().getElements();
    for(var i=0;i<inlines.length;i++){
        if (inlines[i] instanceof Group){continue}
        if(inlines[i].fillColor != color){continue}
        if(inlines[i].contents == ""){continue}
        inlines[i].convertShape(ConvertShapeOptions.CONVERT_TO_RECTANGLE);
        myChangeCorners(inlines[i], 0, .3, "fourth point");
    var myParStyle = doc.paragraphStyles.item("Tab_HeadB_KO");
    myParStyle.baselineShift = -1;
    What do I need to change to get this to work again?
    Thanks,
    Rob

    So it's still somewhat a mystery, because that particular command didn't change from CS4 to CS5.
    Can you try the 'fix' mentioned here? CS5 issues

  • Simple script no longer works in PS3

    The following script no longer works in Photoshop 3. I now get the error message "Adobe Photoshop CS3 got an error. Can't make some data into the expected type."
    What does this mean and how can I fix it??
    Thanks.
    Peter
    set inputFolder to choose folder
    tell application "Finder"
    set filesList to (every file of inputFolder whose name ends with ".jpg")
    set outputFolder to folder (choose folder with prompt "Which folder do you want to save the new photo in?")
    end tell
    tell application "Adobe Photoshop CS3"
    set display dialogs to never
    close every document saving no
    end tell
    repeat with aFile in filesList
    set fileIndex to 0
    tell application "Finder"
    set theFile to aFile as alias
    set thefileName to name of theFile
    end tell
    tell application "Adobe Photoshop CS3"
    open theFile
    set fileName to "FCP" & name of current document
    set docRef to the current document
    set docName to name of docRef
    set docBaseName to (docName) of me
    set docRef to the current document
    set bits per channel of docRef to eight
    set docHeight to height of docRef
    set docWidth to width of docRef
    -- Convert the document to a document mode that supports saving as jpeg
    if (mode of docRef is not RGB) then
    change mode docRef to RGB
    end if
    do action "Resize JPGs" from "FCP.atn"
    set docHeight2 to height of current document
    select all of current document
    set docHeight2 to height of current document
    set docWidth2 to width of current document
    set infoRef to get info of docRef
    select all of current document
    activate "Adobe Photoshop CS3"
    copy
    close docRef saving no
    make new document with properties {width:docWidth2, height:docHeight2, resolution:300}
    paste
    set docRef to current document
    set fileIndex to fileIndex + 1
    set newFileName to (outputFolder as string) & "FCP" & docBaseName
    set myOptions to {class:JPEG save options}
    save docRef in file newFileName as JPEG with options myOptions appending lowercase extension with copying
    close current document without saving
    end tell
    end repeat

    What I'm trying to do is change the resolution of a jpg file to 300 dpi and then change the the jpg pixel dimensions to a width of 1000 pixels--constraining the proportions and letting the height dimension fall wherever. That's what the "Resize JPG's" action does. I then want to save the jpg to a new file called 'FCPoriginalfilename'.
    The script gets hung up on "save docRef in file newFileName as JPEG with options myOptions appending lowercase extension with copying". I get the error message that "Photoshop CS3 can't make some data into the expected type"
    I modified the script from a previous script that I wrote to convert raw files to TIFs which I have attached--it works fine.
    Thanks.
    Peter
    --set tempFolderName
    set inputFolder to choose folder
    tell application "Finder"
    set filesList to (every file of inputFolder whose name ends with ".CR2")
    (*if (not (exists folder ((inputFolder as string) & tempFolderName))) then
    set outputFolder to make new folder at inputFolder with properties {name:tempFolderName}
    else*)
    set outputFolder to folder (choose folder with prompt "Which folder do you want to save the new photo in?")
    --((inputFolder as string) & tempFolderName)
    --end if
    end tell
    tell application "Adobe Photoshop CS3"
    set display dialogs to never
    close every document saving no
    end tell
    repeat with aFile in filesList
    set fileIndex to 0
    tell application "Finder"
    -- The step below is important because the 'aFile' reference as returned by
    -- Finder associates the file with Finder and not Photoshop. By converting
    -- the reference below 'as alias', the reference used by 'open' will be
    -- correctly handled by Photoshop rather than Finder.
    set theFile to aFile as alias
    set thefileName to name of theFile
    end tell
    tell application "Adobe Photoshop CS3"
    --set myOptions2 to {class:raw format open options, bits per channel:16, byte order:Mac OS}
    open theFile as Camera RAW with options ¬
    {class:Camera RAW open options, bits per channel:sixteen}
    set docRef to the current document
    set docHeight to height of docRef
    set docWidth to width of docRef
    -- Convert the document to a document mode that supports saving as jpeg
    if (mode of docRef is not RGB) then
    change mode docRef to RGB
    end if
    (*if (bits per channel of docRef is sixteen) then
    set bits per channel of docRef to eight
    end if*)
    -- The copy is simply saved with additional document info added
    set infoRef to get info of docRef
    --set copyright notice of infoRef to "copyright 2004 trofanna"
    set docName to name of docRef
    set docBaseName to (docName) of me
    set fileIndex to fileIndex + 1
    set newFileName to (outputFolder as string) & docBaseName
    set newPhotoName to newFileName & ".tif"
    set myOptions to {class:TIFF save options, byte order:Mac OS}
    save docRef in file newFileName as TIFF with options myOptions appending lowercase extension with copying
    -- The original document is closed without saving so it remains as it was
    -- when opened for batch processing
    close current document without saving
    end tell
    end repeat

  • S&R script no longer works (in ID 6.0) as it did in previous versions

    This S&R script no longer works (in ID 6.0) as it did in previous versions. Can you help me by correcting it?
    app.findTextPreferences = app.changeTextPreferences = null;
    app.findChangeTextOptions.properties = { 
    includeLockedStoriesForFind:false, 
    includeLockedLayersForFind:false, 
    includeHiddenLayers:false, 
    includeMasterPages:false, 
    includeFootnotes:false, 
    wholeWord:false, 
    caseSensitive:false };
    app.findTextPreferences.findWhat = "Jack & the Beanstalk";
    app.changeTextPreferences.changeTo = "Mary Poppins";
    app.changeText();

    Hi,
    1. What error is detected?
    2. This code does the same thing you could do in UI dialog "Find...Change". Is this working?
    Jarek

  • After installing 10.9.2(Maverik), Java will no longer work.  I went to the java site and downloaded.  However, the new java won't work with maveric either.  What do I do?

    After installing Maverick 10.9.2, Java will no longer work. I went to Java Site to install latest Java, but Maverick won't recognize it.

    Java SE Runtime Environment 7 1.7.0_51

  • Java Script won't work

    Hello all, I'm new to the forums and need help with something. This all started because of my new video card (GeForce 4 Ti 42000) everything worked fine until the mointor started to go bonkers and the links in webpages stop working and GO buttons on sites no longer worked along with those pop-up mini-sites that they use for video games. I always get the smae thing at the bottom Javascript0.void or something along those lines.
    Now I did remove the new card and put in our old one and thought that would clear it out but alls it did was slove everything EXCEPT the Java Script errors.
    Can somebody please help me?

    Did you install the latest drivers for your new card?Better yet did you unistall your drivers from your old card. It can cause all sorts of weird crap when you have remains of an old video card in your registry(assuming you use Windows) and you install a new card and drivers over it. I would suggest going into regedit and looking for anything related to your old card and removing it. But back up the registry first of course. Then unistall all your drivers for the the new card and start from scratch. Get the newest version of your chipset drivers i.e. Via or Intel whatever chipset your board uses and install them first then install your new drivers for your new card. Of course the easiest solution would be to reformat and reinstall windows then put on the new Via/Intel drivers and video drivers then you can be sure you don't have any ghost drivers floating around.

  • My 'run with administrative privileges' script no longer works - help

    Hey all. I have an applescript that shuts down the computer that I made a while back. I pulled it out today to use it and it no longer works. Here's part of the code I'm having trouble with:
    do shell script ¬
    "sudo shutdown -h now" password "myadminpassword" with administrator privileges
    On old machines this worked great, I would just put the admin password where myadminpassword is and it would work perfectly. Now though, I run it on my machine and I get the prompt to enter my admin username and password before it will shutdown.
    Now this is going on a remote install so I need it to work. Any ideas? The machine is running snow leopard, but it seems to still work on an old leopard macbook pro.

    Well, for one, do not use sudo in do shell script.
    The whole 'with administrator privileges' part takes care of elevating your privileges. sudo has no place in do shell script.
    Don't know if that's your issue, but it's the first thing I'd fix.
    If that doesn't help, are you running the script as your admin user?
    Nowhere in your script are you defining the username to run the command as, therefore it will attempt to run as the current user who may not be the same as your admin user, nor have the same password. You might need to include the username:
    do shell script "shutdown -h now" user name "admin" password "myadminpassword" with administrator privileges

  • Script no longer works after Upgrade to 10.4.6

    The following script worked fine using 10.4 thru 10.4.5 but no longer works after upgrading to 10.4.6.
    When I highlight a folder and then run the script the highlighted folder is moved to a specific "Achive" folder, depending on whether the highlighted folder has a ".0" or ".1" or etc in its name.
    When I run the script using 10.4.6 I get an error indicating that the highlighted folder already exists in the destination.
    Anyone else having Applescript problems with 10.4.6?
    --Bob
    tell application "Finder"
    activate
    set fname to selection as string
    if fname contains "0." then
    move selection to folder "ARCHIVE" of folder "0JobsArchive" of folder "Archived_Files" of disk "Preflight_Only"
    else
    if fname contains "1." then
    move selection to folder "ARCHIVE" of folder "1JobsArchive" of folder "Archived_Files" of disk "Preflight_Only"
    else
    if fname contains "2." then
    move selection to folder "ARCHIVE" of folder "2JobsArchive" of folder "Archived_Files" of disk "Preflight_Only"
    else
    if fname contains "3." then
    move selection to folder "ARCHIVE" of folder "3JobsArchive" of folder "Archived_Files" of disk "Preflight_Only"
    else
    if fname contains "4." then
    move selection to folder "ARCHIVE" of folder "4JobsArchive" of folder "Archived_Files" of disk "Preflight_Only"
    else
    if fname contains "5." then
    move selection to folder "ARCHIVE" of folder "5JobsArchive" of folder "Archived_Files" of disk "Preflight_Only"
    else
    if fname contains "6." then
    move selection to folder "ARCHIVE" of folder "6JobsArchive" of folder "Archived_Files" of disk "Preflight_Only"
    else
    if fname contains "7." then
    move selection to folder "ARCHIVE" of folder "7JobsArchive" of folder "Archived_Files" of disk "Preflight_Only"
    else
    if fname contains "8." then
    move selection to folder "ARCHIVE" of folder "8JobsArchive" of folder "Archived_Files" of disk "Preflight_Only"
    else
    if fname contains "9." then
    move selection to folder "ARCHIVE" of folder "9JobsArchive" of folder "Archived_Files" of disk "Preflight_Only"
    end if
    end if
    end if
    end if
    end if
    end if
    end if
    end if
    end if
    end if
    end tell

    I, too, immediately started having problems with my scripts immediately after updating to OS 10.4.6. I put my scripts in "Library/Applications/..." so that the scripts associated with particular applications are available in the menu bar. I don't know if that has any bearing on the problem, but for me, it was not any particular script, but just about every one that started going funny.
    First, I noticed that my scripts would typically work right once, but fail in some odd manner the second time I tried to use one. The second thing I noticed was that the modification dates of my scripts were changing to the time that I last executed the scripts, even though I had not altered and recompiled any of them in weeks. Finally, I noticed that the scripts that were failing were ones in which I had used property statements to initialize some of my variables.
    What I think is happening is this: for some strange reason 10.4.6 is recompiling scripts every time they are run, and variables are being initialized, not to the values specified in property statements, but to whatever the variable was the last time the script ended.
    I discovered that I could prevent this from happening by (1) recompiling all my scripts to make sure all the property statements were back in effect, and then (2) setting the permissions of all my scripts to read only. This seems to prevent whatever in 10.4.6 is recompiling the scripts from doing this each time the script is run. At least, the modification dates are no longer changing inexplicably, and all my scripts are running reliably again.
    It's a bit of a pain to have to remember to reset script permissions to read/write whenever I want to make a change, and then change them back to read only before executing, but it seems to be a reliable workaround. I'd appreciate hearing if anyone else can replicate this phenomenon, or tell me if I'm on the right track.
    Jeff Johnson
    Dual 1.2 GHz   Mac OS X (10.4.6)  
    Dual 1.2 GHz    

  • Script no longer working with OS 10.5

    Since I have upgraded to 10.5 a few weeks ago the following script no longer is working properly. I had been using this script extensively over the last two without any problems. Now it seems to hang up when it gets to the
    "duplicate item i of photoList to "P&M2:CPA JPEG Archive Files:" with replacing"
    Sometimes it eventually copies the file but usually it times out because it takes so long. Have the commands or the way you refer to a server volume changed from 10.4 to 10.5. P&M2 is a server volume. As I said before this script worked fine with 10.4--it only took a matter of seconds to copy a file to my server. I realize that the problem could lie with my server connection but I don't think so.
    Any suggestions??? The script is attached below.
    Thanks.
    Pedro
    global photoList, theFolder, theDate, theSchool, theCats, theEvent, theKeywords, theID, theFileName
    on run
    tell application "Finder"
    set theFolder to ¬
    (choose folder with prompt "Where are my photos?")
    set photoList to (every file of the theFolder whose name ends with ".jpg")
    set cr2List to (every file of the theFolder whose name ends with ".cr2")
    set crwList to (every file of the theFolder whose name ends with ".crw")
    set nefList to (every file of the theFolder whose name ends with ".nef")
    set tifList to (every file of the theFolder whose name ends with ".tif")
    set xmpList to (every file of the theFolder whose name ends with ".xmp")
    set dngList to (every file of the theFolder whose name ends with ".dng")
    end tell
    archiveFiles(photoList)
    end run
    on open theFolder
    tell application "Finder"
    set the photoList to every file of (item 1 of theFolder whose name ends with ".jpg")
    set cr2List to (every file of the theFolder whose name ends with ".cr2")
    set crwList to (every file of the theFolder whose name ends with ".crw")
    set nefList to (every file of the theFolder whose name ends with ".nef")
    set tifList to (every file of the theFolder whose name ends with ".tif")
    set xmpList to (every file of the theFolder whose name ends with ".xmp")
    set dngList to (every file of the theFolder whose name ends with ".dng")
    end tell
    archiveFiles(photoList)
    end open
    to archiveFiles(thePhotos)
    try
    tell application "iMagine Photo"
    close every importer
    quit
    end tell
    on error
    end try
    set Archived to the (count of thePhotos) as integer
    repeat with i from 1 to count of photoList
    --return photoList
    set thisFile to item i of photoList as alias
    set theFileName to the name of item i of photoList
    with timeout of 3000 seconds
    tell application "Finder"
    duplicate item i of photoList to "Photo Server Data:Photo [Data]:CPA Photo Archive:Archive Files:CPA JPEG Archive Files:" with replacing
    try
    mount volume "afp://username:[email protected]/P&M2"
    on error theMsg
    display dialog theMsg
    return
    end try
    try
    duplicate item i of photoList to "P&M2:CPA JPEG Archive Files:" with replacing --SCRIPT HANGS UP HERE!
    on error
    mount volume "afp://username:[email protected]/P&M2"
    duplicate item i of photoList to "P&M2:CPA JPEG Archive Files:" with replacing
    end try
    try
    duplicate item i of photoList to "Photo Server Volumes:Photo [Archive]:CPA Photo Archive:CPA Photo Archive FILES:CPA JPEG Archive Files:" with replacing
    on error
    mount volume "afp://username:[email protected]/Photo [Archive]"
    duplicate item i of photoList to "Photo Server Volumes:Photo [Archive]:CPA Photo Archive:CPA Photo Archive FILES:CPA JPEG Archive Files:" with replacing
    end try
    end tell
    end timeout
    set importPhoto to name of item i of photoList
    set fileRef to "Photo Server Data:Photo [Data]:CPA Photo Archive:Archive Files:CPA JPEG Archive Files:" & importPhoto as alias
    set fileRef2 to "Photo Server Data:Photo [Data]:CPA Photo Archive:Archive Files:CPA JPEG Archive Files:"
    tell application "iMagine Photo"
    activate
    try
    set thisImporter to import graphic fileRef
    set exifInfo to the exif data of thisImporter
    close thisImporter
    exifInfo
    set fileInfo to the exif unicode of item 1 of exifInfo --something like that
    set thePhotog to the exif unicode of item 6 of exifInfo
    set myTID to AppleScript's text item delimiters
    set AppleScript's text item delimiters to ";"
    set schoolInfo to 1st text item of fileInfo
    set AppleScript's text item delimiters to ":" & space
    set theSchool to 2nd text item of schoolInfo --school of the file
    set AppleScript's text item delimiters to ";"
    set catInfo to 2nd text item of fileInfo
    set AppleScript's text item delimiters to ":" & space
    set theCats to 2nd text item of catInfo --catagories of file
    set AppleScript's text item delimiters to ";"
    set theEvent to 3rd text item of fileInfo
    set AppleScript's text item delimiters to ":" & space
    set theEvent to 2nd text item of theEvent
    set AppleScript's text item delimiters to ";"
    set theKeywords to 4th text item of fileInfo
    try
    set AppleScript's text item delimiters to ":" & space
    set theKeywords to 2nd text item of theKeywords
    on error
    set AppleScript's text item delimiters to ":"
    set theKeywords to 2nd text item of theKeywords
    end try
    set AppleScript's text item delimiters to ";"
    set theID to 5th text item of fileInfo
    try
    set AppleScript's text item delimiters to ":" & space
    set theID to 2nd text item of theID
    on error
    set AppleScript's text item delimiters to ":"
    set theID to 2nd text item of theID
    end try
    on error
    if thePhotog is "Sari Goodfriend" then
    set theKeywords to ""
    set theID to ""
    else
    tell application "Finder"
    activate
    display dialog "There appears to be a problem with the archiving information for file" & space & ¬
    theFileName --("OK", "cancel") default button "OK"
    return
    end tell
    end if
    end try
    set AppleScript's text item delimiters to myTID
    tell application "Expression Media"
    open file "Photo Server Data:Photo [Data]:5 PHOTO ARCHIVE:Expression Media catalogs:YU CPA Catalog.ivc"
    tell front catalog
    activate
    tell application "Finder"
    set theNameofFileRef to the name of fileRef
    end tell
    try
    import fileRef
    on error number theNumber
    set theErrNum to theNumber
    if the theErrNum is not -48 then
    display dialog "There appears to be a problem with file" & space & theNameofFileRef & "."
    return
    end if
    --display dialog theErrNum
    end try
    count media items
    set currentMediaItem to result
    set the people of media item currentMediaItem to theID
    set the headline of media item currentMediaItem to ""
    set thePhotographer to author of media item currentMediaItem
    set the keywords of media item currentMediaItem to theKeywords --& "," & space & addKeywords
    set the categories of media item currentMediaItem to theSchool & "," & space & theCats
    set the event of media item currentMediaItem to theEvent
    set the copyright of media item currentMediaItem to "Yeshiva University"
    set theDate to creation date of media item currentMediaItem
    set event date of media item currentMediaItem to theDate
    set the caption of media item currentMediaItem to "ID:" & space & theID & return & "School/Category:" & space & theSchool & "," & space & theCats & return & "Event:" & space & theEvent & return & "Keywords:" & space & theKeywords & return & "Date:" & space & theDate & return & "Photographer:" & space & thePhotographer as text
    end tell
    end tell
    end tell
    end repeat
    tell application "Expression Media"
    save front catalog
    end tell
    tell application "Finder"
    --open file "P&M2:YU CPA Server Catalog.ivc"
    repeat with i from 1 to count of photoList
    end repeat
    end tell
    tell application "Finder"
    duplicate (every file of theFolder whose name ends with ".xmp") to folder "Photo Server Volumes:Photo [Archive]:CPA Photo Archive:CPA Photo Archive FILES:CPA HiRes Archive FILES:" with replacing
    move (every file of theFolder whose name ends with ".xmp") to folder "Photo Server Data:Photo [Data]:CPA Photo Archive:Archive Files:CPA JPEG Archive Files:" with replacing
    duplicate (every file of theFolder whose name ends with ".CR2") to folder "Photo Server Volumes:Photo [Archive]:CPA Photo Archive:CPA Photo Archive FILES:CPA HiRes Archive FILES:" with replacing
    move (every file of theFolder whose name ends with ".CR2") to folder "Photo Server Data:Photo [Data]:CPA Photo Archive:Archive Files:CPA JPEG Archive Files:" with replacing
    duplicate (every file of theFolder whose name ends with ".dng") to folder "Photo Server Volumes:Photo [Archive]:CPA Photo Archive:CPA Photo Archive FILES:CPA HiRes Archive FILES:" with replacing
    move (every file of theFolder whose name ends with ".dng") to folder "Photo Server Data:Photo [Data]:CPA Photo Archive:Archive Files:CPA HiRes Archive FILES:" with replacing
    duplicate (every file of theFolder whose name ends with ".CRW") to folder "Photo Server Volumes:Photo [Archive]:CPA Photo Archive:CPA Photo Archive FILES:CPA HiRes Archive FILES:" with replacing
    move (every file of theFolder whose name ends with ".CRW") to folder "Photo Server Data:Photo [Data]:CPA Photo Archive:Archive Files:CPA HiRes Archive FILES:" with replacing
    duplicate (every file of theFolder whose name ends with ".NEF") to folder "Photo Server Volumes:Photo [Archive]:CPA Photo Archive:CPA Photo Archive FILES:CPA HiRes Archive FILES:" with replacing
    move (every file of theFolder whose name ends with ".NEF") to folder "Photo Server Data:Photo [Data]:CPA Photo Archive:Archive Files:CPA HiRes Archive FILES:" with replacing
    duplicate (every file of theFolder whose name ends with ".TIF") to folder "Photo Server Volumes:Photo [Archive]:CPA Photo Archive:CPA Photo Archive FILES:CPA HiRes Archive FILES:" with replacing
    move (every file of theFolder whose name ends with ".TIF") to folder "Photo Server Data:Photo [Data]:CPA Photo Archive:Archive Files:CPA HiRes Archive FILES:" with replacing
    end tell
    tell application "iMagine Photo"
    close every importer
    quit
    end tell
    beep 3
    activate "Finder"
    set dd to display dialog "The number of files cataloged was:" & space & Archived buttons ¬
    {"OK", "cancel"} default button ¬
    "OK" giving up after 10
    end archiveFiles

    It may be but I have not been able to figure it out.
    Thanks.
    Pedro

Maybe you are looking for