Script UI breaks connection with AI Document?

Last week I wrote a simple script that interacts with my document and exports layers as images.
The script works great, but I thought I'd add a nice UI to it before I release it to the world, so I spent last Saturday making the GUI.
Now, I've built my UI, and I hook it up to my existing code.
If I  trace the current "activeDocument" at the beginning of my code, before I instantiate the window, I get what you would expect:
alert("Current Window:"+.app.activeDocument);//  Traces -   Current Window:[Document myTestDoc.ai]
Now if I try to reference my document from the window click handler, or after I've closed my window I get this:
alert("Current Window:"+.app.activeDocument);//  Traces -       Current Window:[Document]
alert("Current Window:"+.app.documents[0]);//  Also Traces -   Current Window:[Document]
The script can still see the document, but suddenly it can't introspect it.
"app.documents" yields the correct number of open documents,
"app.name" yields the correct application "Adobe Illustrator"
but anything like the following will fail.
alert(app.documents[0].layers.length);
Any advice would be massively appreciated.
thanks,
-J

Hi Chris,
var appPath = app.path + "/Configuration/Contents/MacOS/Adobe%20Illustrator" ;
/configuration/  isn't here...
real path is:
/Contents/MacOS
where appPath is :
/Applications/Adobe\ Illustrator\ CS4/Adobe\ Illustrator.app/
var shellSkript = new File( "~/AIjs/test.command") ;
it write a file at : User / AIjs/test.command
content:
#!/bin/sh
ps | grep -i -e illustrator.exe 1>/dev/null 2>&1 || exit
"/Applications/Adobe Illustrator CS4/Contents/MacOS/Adobe Illustrator" "/Users/MyUserName/Desktop/AIjs/test.jsx"
ps | grep -i -e illustrator.exe 1>/dev/null 2>&1 || exit
.exe doesn't exist on mac, extension is .app (not exactly, in fact .app it's a package/folder but it appears as an application in browse, you can see inside only if you ask for "extract")
Correct run is:
/Applications/Adobe\ Illustrator\ CS4/Adobe\ Illustrator.app/Contents/MacOS/Adobe\ Illustrator
i've tried with:
ps | grep -i -e illustrator.app 1>/dev/null 2>&1 || exit
still in shell/terminal, it return:
logout
[Operation termined]
shell/terminal is broken/termined
ps | grep -i -e Adobe\ Illustrator 1>/dev/null 2>&1 || exit
or
ps | grep -i -e Adobe\ Illustrator 1>/dev/null 2>&1 || exit
or again
ps | grep -i -e /Applications/Adobe\ Illustrator\ CS4/Adobe\ Illustrator.app/Contents/MacOS/Adobe\ Illustrator 1>/dev/null 2>&1 || exit
same result...
below an exemple of  illustrator task (command: ps -A):
1072 ??         0:12.62 /Applications/Adobe Illustrator CS4/Adobe Illustrator.app/Contents/MacOS/Adobe Illustrator -psn_0_299081
1072 is PID (process ID)
0:12.62 <- how many time is running
-psn_0_299081 (i don't know.. but it change at each launch)
Unfortunately i don't know what mean
| grep -i -e application.exe 1>/dev/null 2>&1 || exit
I guess just you test if illustrator task is running or not, if yes shellscript continue and execute illustrator which is run script(jsx), else it close..
So i've tried still directly in shell/terminal:
/Applications/Adobe\ Illustrator\ CS4/Adobe\ Illustrator.app/Contents/MacOS/Adobe\ Illustrator "/Users/MyUserName/Desktop/AIjs/test.jsx"
where test.jsx is simple alert("ok");
Illustrator is running, but no script it was executed in fact , it seems me that when you ask for execute script, illustrator open  (but hide) extentscript tool kit.. but may be i'm wrong..
I hope that this report could help you
if you have any suggest / questions please feel free to ask me.
art.chrome
N.B.: when i launch test.command directly in shell/terminal the result is permission denied
also:
/Applications/Utilities/Adobe\ Utilities.localized/ExtendScript\ Toolkit\ CS4/ExtendScript\ Toolkit.app/Contents/MacOS/ExtendScript\ Toolkit  /Users/MyUserName/Desktop/AIjs/test.jsx
this open ExSTK, and open test.jsx for edit, but not run...
Message was edited by: artchrome (added N.B.:)

Similar Messages

  • Office 2013 - Word cannot establish a connection with this document after the system resumed from suspend mode

    Hiya!
    This issue has been answered numerous times for Office 2010 and Office 2007, but I have yet to any solutions or Hotfixes that work for Office 2013 (x64) on Win7.
    How to replicate the issue:
    Open a file from a network share.
    Edit file.
    Leave computer on with file open. Computer goes to sleep or into stand-by mode.
    Wait a bit
    Wake up computer
    CPU opens file in Read-Only mode and gives you the following error "Word cannot establish a network connection with this document after the system resumed from suspend mode. Save the document into a different file to keep any changes."
    What I've tried:
    http://support.microsoft.com/kb/2434898 - Office 2007 registry fixes. Does not apply.
    http://support.microsoft.com/kb/2413659 - Office 2010 problem. This exact issue. Says 'No microsoft products that match this hotfix are installed'
    Work Around:
    I can saving new versions of these files overrides this issue, but this is sometimes not possible for end-users who only have specific access to ONE SPECIFIC FILE in a particular network share.
    Please let me know how I can alleviate this issue!
    Thanks
    -Chris

    Hi,
    Are those problematic documents created via previous versions of Office?
    Please also try to run a repair of your Office 2013 installtion and check if it helps. See:
    http://office.microsoft.com/en-in/excel-help/repair-office-programs-HA010357402.aspx
    Regards,
    Steve Fan
    TechNet Community Support

  • Script for internet connect with dial up modem, check email & log off

    I am looking for a script to connect to the internet (with dial up) external apple modem, then check email and then log off and disconnect. I don't want any other applications opening internet connect? A would use this script file with ical and could have my email checked and open up in the morning before I leave for work....being that we have dial up the entire process of connecting to the internet and checking email is time consuming. Any help is greatly appreciated. thks

    You need some additional logic in there - as written, the script will launch mail, then immediately disconnect the internet connection.
    At the very least you need to add a delay before disconnecting to allow for Mail to download awaiting messages.
    Since you cannot predict how long a delay you'll need, a better approach would be to query Mail.app and wait until it's idle, like:
    tell application "Mail"
      launch -- doesn't need to be frontmost
      check for new mail -- get all mail
      repeat until (get background activity count) = 0
        delay 2 -- wait 2 seconds before checking again
      end repeat
    end tell
    In this way the script forces a check of new mail (don't assume that Mail.app is set to auto-check, especially for dialup users who often compose mail offline and may have automatic checking disabled), and it hangs around until Mail.app has finished downloading all the messages.

  • Connecting with USPTO Document Retrieval Access webpage

    From: [email protected]
    Subject: Electronic Business Support
    Date: December 11, 2006 2:00:45 PM PST
    To: [email protected]
    Electronic Business Support:
    I have Macintosh Power PC running with the latest Software Operating system MaC OS version 10.4.8.
    On Nov 29, 2006 I installed the latest Security update 14:51:40 Update 0800 from Apple.
    From the USPTO Portal Applications page: "http://portal.uspto.gov/external/portal/!ut/p/s.7_0_A/7_0_1I1/.cmd/ad/.ar/sa.gov.uspto.tow.actions.DetailViewAction/.c/6_0_CH/ .ce/7_0_1JJ/.p/5_0_1CH/.d/0#7_01JJ"
    I am able to reach the respective entry pages for TDR - Trademark Document Retrieval and Public PAIR.
    However, entry submittal of data (serial No. etc.) for retrieval of documents from a particular application on either the TDR Page or the PAIR page simply returns me to the Portal Applications page.
    I have determine that the problem exists with the MAC OS version 10.4.8, and probably with the latest security update mentioned above. I was previously able to access documents from Applications prior to the update with my system.
    I am also placing this issue before the Apple discussions Panel concerning MaC OS version 10.4.8.
    Please advise with regard to possible solutions to this issue.
    Very truly yours,
    David E. Newhouse, Esq.
    CA State Bar No. 54,217
    USPTO Reg. No 24,911
    Tel. No. (650) 348-8652
    Fax. No. (650) 348-8655
    Cell No. (650) 766-4494
    Email: [email protected]
    Web: www.attycubed.com

    Your suggestions were helpful but raises even more perplexing issues.
    The Camino Browser provided access to the USPTO webpage for retrieval of public application documents, and to the documents.
    Neither the Safari nor the Firefox browsers did.
    I have tried resetting, clearing cache, permission repair all to no avail.
    But, I noted that Camino browser download pages to desktop rather than dispalying them, and remembered that page loading delay is built into the Safari Browser and on a hunch disabled that delay using the Safarispeed application. The result was to gain access to the USPTO webpage for retrieval of public application documents, and to the documents.
    This USPTO webpage presents both links for displaying and downloading public application documents (patent applications and trademark applictions). I am a Patent attorney and access to these USPTO documents is essential to my practice.
    Thank-you

  • Express breaking connection with Extreme regularly

    I am trying to find out if distance is the only reason that an airport extreme and airport express would be breaking the home network connection I have.
    I live next to my parents, have a basestation extreme. My parents (20feet away) have an airport express that is set up to extend my network into their home. It generally works well. However, about once every month or two the connection breaks between the two and the extreme wont see the express anymore. The express will continue to light up green, but the extreme will flash yellow and my utility will pop up on my macbook and tell me the express does not exist??
    Its very frustrating and I'm wondering if I should not try to hard wire the two together to maintain their connection, or if thats even possible? I need some advice before I go crazy!!
    thanks,
    aric

    Wireless signals do not penetrate windows well at all (unless they are open), so the glass is probably causing some signal loss issues. What is the construction type of the two walls that the signals must pass through?
    My guess is that you do not have enough signal strength for a reliable connection. (The bars at the top of your screen are not a very good indicator of the actual signal strength present). Or, you may be encountering some wireless interference from another nearby wireless network or possibly even your cordless phone(s).
    Download Air Radar and install it on your laptop. Temporarily, pull the power on the Airport Express (AX) and then take some signal strength measurements of the network at the location of the AX. Click the Begin Scan button at the lower right of the main Air Radar window. After a moment, you will see your network appear.
    What is the signal strength % that you see on your network?
    If you double click your network on the scan page, you will see the noise on your network. What is the %?
    If you don't have at least a signal strength of 45-50% or more where the AX is located, you don't have enough signal for a reliable connection.
    Also look for any other wireless networks that appear and note whether they are using the same channel of close adjacent channels to your wireless network.
    So, what does it look like there?

  • Aperture Losing Connection With Masters

    Hi,
    I've been using iPhoto since the beginning and started noticing over the past year it would lose connections with the master files.  Thankfully I had backups of each file.  So I decided to start rebuilding my library in Aperture from scratch (figured start clean and all).  I started importing files and adding metadata and keywords.  I didn't get far (literally a day or two) before I realized that Aperture started losing conncetions with the Master files as well. 
    How I found out is that I used a software called HoudahGeo to geotag some old photos and it gave me the warning that it couldn't find the master files.  When I went back to Aperture I clicked on the image and noticed that the "Show in Finder" option was grayed out.   I went into the Aperture library itself (because I was having it keep on the images inside the library and not referenced) and noticed that the files were there in the "Masters" folder but Aperture was saying it was missing.  When I tried to relocate the original it fixed the one image but then started to break connections with other files and images.  I notice it had randomly last connection with different files in different albums.
    At this point I'm not sure what to do since I've had this problem with both iPhoto and Aperture.  Thankfully I didn't get far before I realized this problem but I was really hoping to use Aperture for all my photos but it makes me worried that it'll lose images like that.  I don't want images to get deleted or lost.
    Has anyone had this problem or know how to fix it?  I sent feedback to Apple so hoping it's a bug they can fix.  I'm currently using Mavericks and Aperture 3.5.1.
    Thanks!

    How I found out is that I used a software called HoudahGeo to geotag some old photos and it gave me the warning that it couldn't find the master files.  When I went back to Aperture I clicked on the image and noticed that the "Show in Finder" option was grayed out.
    I thought your Aperture library is managed? iPhoto will show the originals for managed images, but not Aperture. "Show in Finder" will be grayed out, if the images is in the Aperture Library package. That does not indicate that Aperture has lost the connection. Broken arrow badges indicate lost originals.
    But the problem wasn't HoudahGeo accessing my masters but notifying me that Aperture lost them.  Because when I went back to into Aperture I noticed the original files were missing.
    What exacty did you see in Aperture, that the orignals are missing? Badges with broken arrows?
    I went into the Aperture library itself (because I was having it keep on the images inside the library and not referenced) and noticed that the files were there in the "Masters" folder but Aperture was saying it was missing.  When I tried to relocate the original it fixed the one image but then started to break connections with other files and images.
    This cannot be - are you saying, Aperture did relocate an original file, that it reported as missing?
    The forum software seems to be working again today, so we could start again to try to get to the roots of your puzzling problem.
    Or have you solved it by now? Then let us know please. 

  • "No connectivity with the server" error for one document but not the other, in the same document library

    We have a number of users all of a sudden getting "No connectivity with the server.  The file 'xxx' can't be opened because the server couldn't be contacted." errors trying to open MS Office docs (Word, Excel, etc.) in SharePoint with IE,
    just by clicking the link and selecting the "Read Only" option.  If they select the "Check Out and Edit" option, they can open the document no problem.  One of my customers gets the error on one document but not the other, in
    the same document library!  The older document (a weekly report) was copied and renamed as per standard procedure.  She can read the older document, but not the new one.
    It is definitely a profile issue, as other people have logged onto the machines of the users with problems and do not get the error.  We have also renamed people's c:\user profile folders and the corresponding Profilelist registry entry and the newly
    created profile does not experience the error for these people.  Renaming the profile back restores all their personal settings but the error reappears.  When we copied the old profile's folder structure into the new profile, many of the user settings
    were restored (but not all, like Dreamweaver settings) but the error did not appear.  We think that the system folders files (like AppData) weren't totally copied over so we're going to run another test using xcopy.  We are rebooting between
    logons to make sure all files are unlocked.
    The laptops and computers are mainly 32bit, Win7 Enterprise running IE9 and Office 2010 Professional Plus, but there's a few 64bit machines as well. The SharePoint farm has 1 WFE, 1 App Server running search and CA, and a shared database server running SQL
    2005 SP4.  SharePoint is 64bit MOSS 2007 with the latest CU.
    We've checked the logs on the client as well as on the server and there aren't any helpful entries.  We've also run Process Monitor, also with no helpful entries.  We're planning to run something like Fiddler next.
    It's not everyone, because there are many people are accessing the SharePoint system and the same files.  It is also not a permission thing, as we've tested by giving the users elevated permissions with no changes.  One person experiencing
    the errors is a Site Collection Admin.  That same person ran a test where I coped a simple Excel file into a Document Library which contained a problem file.  They were able to open it Read Only no problems that day, but the next day, the same
    file gave them an error.   In their case, they usually get a "xxx is not checked out" error and only occasionally get the "No connectivity with the server" error.
    We've tried lots of things including:
    Deleting IE cache
    Deleting SharePoint Drafts and webcache folder contents
    Running IE without add-ons
    Upgrading and Downgrading IE
    Uninstalling and re-installing IE
    Reinstalling our SSL certs
    Repairing Office
    Removing and then adding back in the Microsoft Office "Microsoft SharePoint Foundation Support" Office Tool 
    Deleting all HKLM and HKLU Office registry settings
    Toggling IE Compatibility Settings
    Toggling the IE Automatic Logon option
    Toggling the location of checked out files
    Adding the site in the trusted sites list
    Adding the site to the WebClient\Parameters registry locations
    Making sure the WebClient service is started
    Rebooting the machine (lol :)
    This is becoming a serious issue, not just because of the inconvenience for the users having to check out every document they want to read, but we have some files with macros that open up other documents to run which are now failing.  There aren't
    "check out" workarounds for some of those macros.
    We're planning to open a ticket with Microsoft, but I'm throwing it out here first in case someone has run into this before, or may have some suggestions on what to try next.  Thanks!
    -Richard.
    PS  I think this needs to be in the "General" forum instead?

    It took three days of dedicated troubleshooting, but I have found the cause of the errors, and a couple of fixes.  It helped tremendously that my own machine was throwing the error.  I have scheduled a couple of users to work with me to test the
    various fixes, to see which one works best, so the story isn't over yet.
    I had backed up my c:\users profile folder and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList registry key so I could restore my profile after I was done.  I made a copy of the profile folder and was using that for awhile,
    but then made another copy where I had deleted a lot of content out of it so that the copies would go faster.  Since a newly created profile did not have errors, I was trying to copy back as much of the profile as possible to make it easier for our users
    to get back to work.  Instead of blowing away their profile and starting from scratch (which we know worked) I wanted to narrow down what was causing the error and just skip that from the restore.  The concept was to keep as much as the users profile
    in tact (application settings, etc.) not just restoring their desktop and My Documents folders.
    When we first tested a few weeks ago, simply copying the folder contents didn't reproduce the error.  I then tried xcopy, but got the "can't read file" error.  Then I tried robocopy, and ran into the "junction" problem. 
    I went back to xcopy, and found that placing the excludes.txt file in the windows/system32 folder eliminated the error.
    So the process went as follows: 
    Reboot and log into the machine as another user
    Delete the profile and associated registry key
    Reboot and log into the machine as the affected user, creating a new profile, and there is no error
    Reboot and log in as the other user
    xcopy the contents of the skinned-down backed-up profile to the newly created profile
    Reboot and log in as the affected user, and the error occurs
    Repeat the above, but add items in the excludes.txt file to see what, when eliminated, causes the error not to appear in the last step
    I eventually found that skipping the c:\users\<profile folder>\appdata\local\Microsoft\office\14.0 folder allowed the entire profile to be copied over without the error occurring.  That was strange, because we've cleaned out the cache folders
    before which didn't fix the issue. 
    So I went about it the opposite way, and tried to delete the 14.0 folder from the restored profile, and after reboot, the error still occurred.
    What eventually worked was deleting the 14.0 folder and copying over a 14.0 folder from a newly created profile!
    One way to do this was to:
    Reboot and log in as another user
    Rename the c:\users profile folder
    Rename the appropriate [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList] registry key
    Reboot and log in as the affected user, confirm that there is no error
    Reboot and log in as the other user
    Copy the C:\Users\<profile folder>\AppData\Local\microsoft\Office\14.0 folder to the other user's desktop
    Delete new profile folder, and rename the backup to be the production folder
    Delete the C:\Users\<profile folder>\AppData\Local\microsoft\Office\14.0 folder and then paste the 14.0 copy from the desktop
    Reboot and log in as the affected user, confirm that there is no error
    We've tried this on a couple machines and it works.  I had to run Windows Explorer as Administrator to access the other profile's folders.
    We've also successfully copied a 14.0 folder created by one profile on one affected computer over another profile's folder on another computer, eliminating the error, so we're trying that first, as that is fewer steps.
    We may attempt to script this, but the self-help instructions are only 5 lines long:
    Reboot and log into the affected computer with another account
    Go to <link to location of 14.0 folder on network> and copy the 14.0 folder
    Run Windows Explorer as Administrator
    Go to c:\users\<profile folder>\appdata\local\microsoft\office and delete the 14.0 folder, and paste the copied 14.0 folder (trying to overwrite it makes Win7 want to merge the folders)
    Reboot and log into your normal account, and confirm the error is gone
    I'll come back and report after we go into the field with this fix, but after the few tests, I am cautiously optimistic that this is it.

  • How do I scan and email documents on my canon mx870? I have a MAC OS X 10.7.5 and it is connected with a usb cable to the printer. Thank you so much!

    How do I scan and email documents on my canon mx870? I have a MAC OS X 10.7.5 and it is connected with a usb cable to the printer. Thank you so much!

    Hi, I have 10.6.8 and an HP printer so it may be slightly different but I'll give it my best shot:
    Go to System Preferences.
    Click on "Print & Fax"
    Near the top of that page you should see "Print" and "Scan" options. Click "Scan"
    A button appears that says "open scanner"
    The settings are different between the different scanner models so I'm not sure what the next window will look like, but it should be pretty straightforward from there. It will scan to a JPEG image which you can attach to an email. I hope that helps! Let me know if there's anything ense I can help with.

  • Documents not Opening, No connectivity with the server

    Morning,
    Strange problem we are encountering that seems to be with a specific image build we have of Windows 7 Enterprise x64, with and without Service Pack 1 using IE8 x32 and Office 2010 x64.  When we try to open Word, Excel, or specifically PowerPoint documents
    on our new SharePoint 2010 server we get the following error: No connectivity with the server.
    Here is a JPG of the error message:
    http://www.gofsj.com/fsj/uploads/caa612c339cccaf12448e34a65c83d7d_erroropeningdocument.jpg
    A "normal" install of Windows 7 Enterprise x64, with no custom configuration (but getting the domain group policies) can view the files on SharePoint 2010, no problems.  Unfortunately, we've already deployed the "odd" image out to 50+
    machines.
    We have tried resetting Internet Explorer, uninstalling Office 2010 x64 and installing Office 2010 x32 with no luck. 
    What is really going on?  Is it a SharePoint plugin that isn't installed?  Is it Internet Explorer isn't configured correctly, or has DLLs that aren't registered?  Or something with Office 2010?  Is there a way to capture more than this
    Error Message?  This is what pretty much stamps in the Event Viewer too...

    This may be related to the Network and Sharing Center stating the computer is not connected to any network, and the Windows Firewall stating it is on a Public Network.  Even though the machine is connected and running on the LAN.
    I added SERVICE with full control (and pushed it down to registry subkeys) on HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList.  Then I Enabled/Disabled the LAN Adapter.  Could also reboot, or physically unplug the cable.  Not
    sure if restarting a specific service would accomplish the same thing or not.
    In the Network and Sharing Center it came up as on the domain.  Windows Firewall came up as being on a Domain.  And I was able to open PowerPoint and Excel documents on the SharePoint site. 
    So for now, looks like this is fixed.

  • Trouble with script to break out csv variables

    Using the following script to break down a csv file.
    CREATE OR REPLACE PROCEDURE s1_prc is
    cursor sa_cur is
    with t as (
    select sa_record str from sa_records
    -- where rownum < 2
    select regexp_substr(str,'[^' || CHR (9) || ']+',1,1) c1,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,2) c2,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,3) c3,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,4) c4,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,5) c5,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,6) c6,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,7) c7,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,8) c8,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,9) c9,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,10) c10,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,11) c11,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,12) c12,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,13) c13,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,14) c14,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,15) c15,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,16) c16,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,17) c17,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,18) c18,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,19) c19,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,20) c20,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,21) c21,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,22) c22,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,23) c23,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,24) c24,
    regexp_substr(str,'[^' || CHR (9) || ']+',1,25) c25
    from t;
    BEGIN
    delete from reciprocal_records;
    commit;
    for i in sa_cur loop
    DBMS_OUTPUT.PUT_LINE ('1 '||i.c1);
    DBMS_OUTPUT.PUT_LINE ('2 '||i.c2);
    DBMS_OUTPUT.PUT_LINE ('3 '||i.c3);
    DBMS_OUTPUT.PUT_LINE ('4 '||i.c4);
    DBMS_OUTPUT.PUT_LINE ('5 '||i.c5);
    DBMS_OUTPUT.PUT_LINE ('6 '||i.c6);
    DBMS_OUTPUT.PUT_LINE ('7 '||i.c7);
    DBMS_OUTPUT.PUT_LINE ('8 '||i.c8);
    DBMS_OUTPUT.PUT_LINE ('9 '||i.c9);
    DBMS_OUTPUT.PUT_LINE ('10 '||i.c10);
    DBMS_OUTPUT.PUT_LINE ('11 '||i.c11);
    DBMS_OUTPUT.PUT_LINE ('12 '||i.c12);
    DBMS_OUTPUT.PUT_LINE ('13 '||i.c13);
    DBMS_OUTPUT.PUT_LINE ('14 '||i.c14);
    DBMS_OUTPUT.PUT_LINE ('15 '||i.c15);
    DBMS_OUTPUT.PUT_LINE ('16 '||i.c16);
    DBMS_OUTPUT.PUT_LINE ('17 '||i.c17);
    DBMS_OUTPUT.PUT_LINE ('18 '||i.c18);
    DBMS_OUTPUT.PUT_LINE ('19 '||i.c19);
    DBMS_OUTPUT.PUT_LINE ('20 '||i.c20);
    DBMS_OUTPUT.PUT_LINE ('21 '||i.c21);
    DBMS_OUTPUT.PUT_LINE ('22 '||i.c22);
    DBMS_OUTPUT.PUT_LINE ('23 '||i.c23);
    DBMS_OUTPUT.PUT_LINE ('24 '||i.c24);
    DBMS_OUTPUT.PUT_LINE ('25 '||i.c25);
    insert into in_records (IN_SEQ_NO,
    IN_TRANS_TYPE, -- 1
    IN_SUBMIT_CLUB, -- 2
    IN_PROC_ID, -- 3
    IN_SERV_CLUB, -- 4
    IN_SERVICE_DATE, -- 5
    IN_CALL_ID, -- 6
    IN_RAP_CALL_ID, -- 7
    IN_FACILITY_CODE,-- 8
    IN_TROUBLE_CODE, -- 9
    IN_DUTY_FLAG, -- 10
    IN_CLUB_CODE, -- 11
    IN_MEMBER_NO, -- 12
    IN_MEMBER_TYPE, -- 13
    IN_EXPIRY_DATE, -- 14
    IN_LAST_NAME, -- 15
    IN_FIRST_NAME, -- 16
    IN_EDS_VIN_NO, -- 17
    IN_ODOMETER, -- 18
    IN_TRAVEL, -- 19
    IN_MILES_DEST, -- 20
    IN_TAX_AMT, -- 21
    IN_TOTAL_AMT, -- 22
    IN_DISPUTE_CODE, -- 23
    IN_ERR_CODE, -- 24
    IN_COST) -- 25
    values (1, i.c1, i.c2, i.c3, i.c4, i.c5, i.c6, i.c7, i.c8, i.c9, i.c10, i.c11, i.c12, i.c13, i.c14, i.c15, i.c16, i.c17, i.c18, i.c19, i.c20, i.c21, i.c22, i.c23, i.c24, i.c25);
    commit;
    end loop;
    commit;
    end;
    The problem I'm having is if there are two null characters together, it seem that the script is ignoring the first null character.
    Example:
    ACP^     212^     HOC^     212^     08292012^     1069^     N^     1603^     T1^          097^     4290972957271019^     PLUS^     03312013^     GAGLIO^     MARC^ ^          N^     010^     000^     000149^     002746^     ^     ^     PLS/02567/:TEL/00030/TELECOMMUNICATIONS CHARGE
    After the first name, Marc, there are two (CHR 9) characters, also after 002746 there are two (CHR 9) characters. So what happens is the last field 'PLS/02567...' ends up as the 23rd field, not as the 25th field.
    Hope this clear. Any suggestions are welcome.
    Thanks
    Paul

    Hi, Paul,
    To find the item before the n-th CHR(9), even if that item is NULL:
    RTRIM ( REGEXP_SUBSTR ( str
                    , '[^' || CHR (9) || ']*(' || CHR  (9) || '|$)'
                    , 1
                    , n
          , CHR (9)
          )The expression above will work in Oracle 10.1 and higher.
    Starting in Oracle 11.1, you can do this without RTRIM, because REGEXP_SUBSTR can now be told to return only part of the matching pattern.
    Edited by: Frank Kulash on Oct 15, 2012 1:36 PM

  • Really having problems with organising documents in pages. For example, deleting pages deletes the whole section and I cannot insert a section break as its greyed out & sending an object to background deletes several pages - what the **** is going on???

    Really having problems with organising documents in pages. For example, deleting pages deletes the whole section and I cannot insert a section break as its greyed out & sending an object to background deletes several pages and trying to insert a text box autmatically creates new pages- what the **** is going on??? Is this programme really this badly thought out? I thought everything apple was supposed to be intuitive!?!?!? Help.

    You can not insert a section break into a textbox.
    You appear to have a lot of objects with wrap set, that once you take them out of the flow of text (by sending them to the background) causes the text to reflow and contract into fewer pages. Pages is almost unique in the way it forms up pages in Word Processing mode only so long as there is text on them.
    I suspect you probably have hammered away at returns, spaces and tabs as well to position things, which only works to add to the mess.
    Download the Pages09_UserGuide.pdf available under the Help menu and swot up a bit on how it works.
    You may find this a usueful resource as well:
    http://www.freeforum101.com/iworktipsntrick/
    Peter
    PS There is quite a lot of programming in OSX that is far from "intuitive". Pages is easy at one level, when using the templates, otherwise it can be quite frustrating.

  • PC breaks down when connecting with iPhone

    For about 2 weeks my PC breaks down whenever I try to connect with iPhone. A blue screen appears and it shuts down immediately. After restart the same happens again. Can anyone help me?

    Hi Diana,
    Does your PC have software for a Logitech QuickCam/Webcam, Lexmark scanners, or a built-in media card reader?
    If it does try uninstalling the software from Control Panel, then testing and downloading the latest software/drivers available, as described here: http://support.apple.com/kb/TS1502
    -Jason

  • My mac always break up with the wifi connection

    The serial number of my Mac is :
    C0*****FT0
    I think after I updated the system at about end of Oct. or beginning of Nov., it started. Always break up with the wifi connection. I went to the tech spot on campus, they told me it's all fine. But my Mac always break up with wifi connection, especially on campus. I don't know if I can go to somewhere to check it? My zip code is 44240.
    <Serial Edited by Host>

    Hi Ariel_Yang,
    Thanks for using Apple Support Communities.  This article has steps you can take if you are frequently being disconnected from Wi-Fi:
    Wi-Fi: How to troubleshoot Wi-Fi connectivity
    http://support.apple.com/kb/HT4628
    Cheers,
    - Ari

  • Dear All Has anyone found a break through with the issue of Connect to itunes to use push notifications

    Dear All Has anyone found a break through with the issue of Connect to itunes to use push notifications

    Did you get any help on this? From what I can see from surfing this site, it's a BUG that no one has offered a solution to. It sometimes happens after a 'reset' and going to ITunes does not offer a way to 'set up push notifications'.

  • HP Photosmart 5510 will not print Black Ink!! - Time to "break-up" with HP

    I came upon this forum by doing a google search for the issue I'm having which is my HP Photosmart 5510 will not print black ink. The printer is a year and a half old and is used only for home office use (not a heck of a lot of printing being done)
    It started right after I installed new ink cartridges (all four of them) I want to mention hear that I ONLY buy genuine HP ink cartridges from Staples and when I replace my cartriges I replace all four at the same time even if one ink level is not considered "replaceably" low. When the issue started I thought I must have gotten a bad black cartridge so I went out and bought another one but was still having the issue. So that's when I did my google search.
    I tried all the suggestions (several times) on this post (which did not reslove the problem) : http://h30434.www3.hp.com/t5/Printing-Issues-Troubleshooting/HP-Photosmart-5510-will-not-print/m-p/1...
    and I tried a "Hard Reset" as suggested here (again did not resolve the problem) :  http://h30434.www3.hp.com/t5/Ink-Toner-Cartridge-Printhead-Issues/Photosmart-5510-Will-not-print-in-...
    After trying all of these my color ink is less than half full....remember....I started with 4 brand new ink cartridges...so now, I'm out roughly $85 in ink just trying to resolve a problem that should not have happened in the first place!! Shame on HP for makeing such poor quality products. I gave up on HP computers years ago and now I'm giving up on their printers!! This HP Photosmart 5510 All In One printer replaced an HP Color Laserjet CM1312nfi printer (which cost approximately $400) that only lasted about 3 years. Sorry HP but that's it....I'm moving on! Consider this our "break-up" letter. 

    Hi TisKate, sorry to hear that you are having printing issues when it comes to printing in Black. I am also sorry to hear that you are breaking up with HP. I would like to offer a couple more troubleshooting steps before we say our fond farewells. Now this might sound silly but really it isn't. If you have the power cable connected to a Power bar/strip, please remove it and connect the power cable directly to a wall outlet. HP printers already have a built in surge protector and if you have it in a strip/bar, the printer will not get all the power needed to function properly. This can cause printing issues or false error messages on the printer display screen. Here is a document that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector. 
    The other step I would like to take is on the printers display touch screen. Please use the right arrow key and go to the Wrench icon. Press the wrench and go to the Tools menu. Once in the Tools menu, please select Clean Printhead. Use the cleaning utility 2-3 times or until you see a change in the print status reports. It might take a few cycles but I am confident that it will make a difference.
    I hope you and HP can still be friends( friendly humor).
    Thanks for your time. 
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

Maybe you are looking for

  • IMovie will not import or play the clips at the proper speed and the audio and video do not match up.

    i have a samsung hd camcorder. it records at 40 fps, but iMovie will not play the clips at the proper speed and the audio and video do not match up. I have tried to record at standard quality to no avail. Help. thanks in advance.

  • FM12 maker.ini -- XmlUtilities client

    Hello fellows, Does anyone know what the following structured FM12 client does and what the configuration options are? XmlUtilities=Standard, Utilities for XML, fminit\xmlutils.dll, structured The FM12 INI Reference Guide does not explain anything ab

  • OT: 24" LCD - resolution preference

    Hi I am going to get myself an 24" Wide LCD. There are two resolutions available: - 1900 x 1200 WUXGA (from PC world) - 1920 x 1080 Full HD (from TV world) Should I prefer one over the other or is this simply a "d'ont care"? Thanks for your suggestio

  • Tint Tween and Button

    So I finally have my buttons working! Thanks for the help... but... I want to include a tint tween. I know how to create them, but not how to link them to my button. Do I need to put them inside my button symbol? The tweening would start at mouseover

  • Launching Camera Editor From Photoshop

    It's unbelievable how much time & effort I have put in to getting an answer to such a simple question. Back in much earlier releases, it would have taken about 15 seconds with a quick search in the help file. I saw one video in which a Photoshop geek