Trying to run an older perl drag-and-drop program

At work we have a perl program that does a wonderful job of transforming a pre-edited (with tags) text file into an html document ready for the web including lots of external references to technical journals.
This was written eight or nine years ago in the Mac Classic days. There are three files. One is called formatter9. This has a camel icon with a circle with a line through it.
Then there is one called formatter9.pl and one called f9.template. The template is referenced in the formatter9.pl. I go into formatter9.pl and change the month each time before we use it at least 40 or 50 times during the course of a week.
This drag and drop application worked fine with Classic OS 9 loaded on PPC Macs, but not on Intel Macs.
I am able to run it on an Intel Mac with OS X 10.5 in terminal with an input file (called, for example, filename.txt) by entering:
perl formatter9.pl filename.txt
It would be nice to get this to work as a drag-and-drop in OS X, though. I've picked up a perl book, but it's new to me and I don't work with any techies.
My thought is that it might be as simple as changing the first few lines of code in the perl script. They are:
use strict;
my $isDroplet = 0; # 0=false, 1=true # use droplet for filter to be used by cgi
my $DEBUG = 1;
my $template = "f9.template";
my ($inText) = @ARGV; #$isDroplet?@ARGV:("something-esp.txt");
Would someone know if there might be a simple change to this code to make it work in OS X? If not, where else might I go to look for an answer?

BflatBlues wrote:
Then there is one called formatter9.pl and one called f9.template. The template is referenced in the formatter9.pl. I go into formatter9.pl and change the month each time before we use it at least 40 or 50 times during the course of a week.
Wait a minute. You are editing the script 40 or 50 times each week? Instead of worrying about making it drag and drop, change the code to accept a month as a parameter. Then just run it from the terminal with two parameters. Then use Automator to make it drag and drop and prompt the user for a month to select.

Similar Messages

  • Can you drag and drop programs from 1 computer to the other??

    I have finalcut studio on my dual gig g4 but now I want to work off my laptop and sell the dual gig g4. Only problem is that I have my finalcut studio disks buried in a big stack of boxes in preparation for a move. Is there a way I can transfer the programs to my laptop without haveing to dig in all these boxes for the install disks?
    Thanks

    You do not want to drag and drop - it does copy the program, sure. But it does not bring over over ALL the necessary components and frameworks needed to run. So it no worky.
    Solution - clone off the whole OS, programs, et al to an ext fw drive and boot off that.
    You'll want a pcmcia adapter to give you 2 buses so that one fw disc can hold the media and the other fw disc to hook into the built in bus.
    For the OS fw disc you'll find that using the fw 400 port is fine.

  • Trying to create af:selectBooleanRadio using drag and drop

    hi friends , i am a newbie in ADF.
    i have created a web service data control . There is method call param(Str1,Str2,Str3) and returns a list.
    i want to create radio button based upon the output of the method.
    please give me some suggestion..

    sorry for this i am using jdev11.1.1.6.0, the list contains a class object , class object contains 5 parameters like par1,par2,par3,par4 and par5.
    i want to use par2 value to create a radio button. par2 is a boolean type if par2 has value then the radio button will show on otherwise off.
    do u have any sample code any reference which will help me.

  • "cgpdftops quit unexpectedly" when drag-and-drop/batch printing in Yosemite

    I have an annoying little frustration when printing certain PDF documents in Yosemite. It happens when I drag and drop documents from Finder onto an installed printer--i.e., dragging the document file onto the printer icon that has been copied to the desktop (essentially batch printing). Whenever this happens, I get a "Stopped - 'Filter' failed" error message, along with a "cgpdftops quit unexpectedly" lengthy problem report. After tinkering around for a while, I discovered that this only happens when the document is in landscape mode--if I drag and drop a document in portrait mode, it prints just fine this way. Furthermore, if I actually open the PDF document in Adobe Reader--even the landscape ones--I can print them all perfectly fine that way. It ONLY happens on LANDSCAPE documents when using the drag-and-drop print method. VERY STRANGE!
    A little background--I found this out when one of my users was attempting to do this with her newly-upgraded iMac and started receiving this message. She does a lot of batch printing because of the number of files she has to routinely deal with, and this saves her a lot of time over opening each file individually. She says she never had an issue with this when she was on Mavericks, and it only started when she upgraded to Yosemite. I ended up trying this on my own Macbook Pro running Yosemite and was able to replicate the problem on it. I've also replicated the problem on more than one printer of different brands, so I can eliminate that being the source. My user ends up sending the files to her coworker, who is running Mavericks, and is able to batch print the files successfully.
    I have been able to whittle it down to the issue simply being printing any PDF file in landscape mode to any printer from any Mac running Yosemite using the drag-and-drop/batch printing method. Numerous Google searches have gotten me nowhere with this. Some point to similar issues which throw this error message, but none specifically point to this particular issue. Certainly I can't be the only person who has tried this...
    Does anyone have any ideas?? I'm all out...

    How much storage space is left on the boot drive of the Yosemite iMac where the CUPS cgpdftops filter croaks? Are the printer drivers for the problematic printers current for Yosemite. Have you removed and reinstalled current printer drivers for the associated printers?

  • PowerMac 5.1 drag and drop not working, any suggestions?

    Powers Mid 2010 5.1 running 10.10.3, drag and drop not working smoothly, won't engage to drag. Any suggestions?

    Thanks for the return, well, just trying to relocate a web screen or move a saved application from the desktop into a folder. I use Final Cut Pro Ten extensively and sometimes I want to drag something off my desktop into the time line on the FCPX. When I left click and hold on the item to drag it doesn't seem to engage then when it does move it quits along the way to the drop point. I hope that makes since too you? I use a Logitech two button with a scroll wheel wired mouse and have twin 32" monitors. Thanks Latranner

  • Error while drag and drop in OAWD transaction

    Hi Expert,
    One of my user is trying to attach a document through Drag and Drop in OAWD transaction after he attaches a document and when he cancels on the cancel button he is getting the following error:
    Crtical error during Archiving: Archiving Directory cannot be created. The Archiving procedure will be aborted.
    Please help to resolve this issue.
    Thanks in advance.

    Hi Babu Nair, how did you solve this issue?
    Rgds,
    Nanie

  • Programatic Generation and positioning of  components using Drag and Drop

    Hi,
    I am relatively new to ADF and UI Designing. Im trying to generate a flowchart using drag and drop feature in ADF. This involves creation of dragging images such as start,decision .. etc from one panel to another and dynamically creating a flowchart.
    Up to now i have managed to drag images from panel1 to panel2 and create them dynamically in the bean class. However im stuck at this point .. Im not able to position the draggable components on the desired position in the panelGroup. They either appear horizontally or vertically.
    Is there any way to achieve this. Also is it possible to assign a dropTarget to a a target component which is created dynamically ?
    Thanks in anticipation ....
    Lyle

    Hi Lyle,
    I am too only 4 months old to adf ,i use jdeveloper 10g.
    In 10g for the components to be placed at desired locations i think is somewhat possible. While you can arrange them by using spaces which causes
    f:verbatim tag to appear or you can use ADF Faces Core items like Object Spacer and Object Seperator where you can set their length and width to space objects on page...
    Regards
    Rohit

  • Drag and Drop issue from Explorer folder to Music Library

    Hello
    I just updated my iTunes to 8.0.0.20 but something unexpected happened. I can’t drag and drop anymore songs from an explorer folder into my music library when my view mode is set to Grid (Album, Artist, Genre or Composer).
    When I try I have a kind of interdiction circle under my pointer.
    I can only perform this operation in list mode view. Few hours ago it was still possible to perform it but not after I updated. I reinstalled my iTunes but the problem persists.
    I have read the forums I know I can add to my playlist as usual by using the menu. But is it possible to get drag and drop operation when I drags song directly from a folder on my explorer window?
    It would be very appreciated if someone has an answer. I really messed up my library trying to fix this

    I fixed the drag and drop issues I had! Turns out they were caused by the permission problems of Vista. To fix it I just made sure all the files in the iTunes folder and sub folders were full control by my account.
    Make sure you check the properties of the iTunes database specifically because before, the iTunes folder had the correct permissions but they hadn't actually been inherited correctly by the iTunes DB files. Hope this helps anyone else.

  • BO XI 3.1 Security - Enable drag and drop

    Hi,
    I am trying find out how to enable "drag and drop" for the webi reports in Infoview.
    What are the main settings in access levels or profiles needs to be done ?
    Also, I am wondering if we can do some settings for enabling developers to use import wizard-client tool.
    Any suggestion from soem experts...?

    You can do "drag-n-drop" in the Java Report Panel. But you cannot "drag-n-drop" report objects from folder to folder which is a poor design in my humble opinion. ASUG (America's SAP Users' Group) is starting several Influence Councils this year. If you are interested in voicing your constructive opinion and suggestion to the Product Managers, please go to asug.com to find out more information and to sign up.
    As of Import Wizard, it is an administrator tool and should be restricted to administrators only. Making it available to developers/users is asking for trouble. It will lead to total chaos.

  • Can't drag and drop on desktop and I've tried all suggestions from previous threads

    Yesterday I found that I can't drag and drop any files on my desktop. I get the white circle with a line through it when I try to drag anything. I can drag off of my desktop to my HD and to the trash but I can't drag anything back.
    I've read all of the previous threads about it and have tried all of the poetntail fixes including:
    Creating a new user account and switching back and forth
    Sleep / Wake
    Relaunching Finder
    Checking the Dragging option in Universal Access
    Checking all of my settings in prefrences
    (I don't have Air Display, Airparrot or any of the other listed problematic 3rd party programs)
    I even reinstalled Lion and the problem still exists
    Anybody have any other pointers, or should I head into the Genius Bar?

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Back up all data now. Before proceeding, you must be sure you can restore your system to its present state
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the Recovery screen appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens. You’re not going to reset the password.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • I am trying to drag and drop one page of a .pdf into another .pdf in Acrobat Reader.  I used to be able to drag and drop from one .pdf to another.

    I am trying to drag and drop one page of a .pdf into another .pdf in Acrobat Reader.  I used to be able to drag and drop from one .pdf to another.

    If you could drag and drop pages before, it wasn't in Reader. You no doubt had Adobe Acrobat (Pro or Standard) which shouldn't be confused with Adobe Acrobat Reader. They recently added Acrobat to the name of Adobe Reader so the confusion about which product you had and/or have is understandable.

  • I can't sync my music on iPhone 4S - trying to do manually but don't get options to drag and drop .  If I uncheck everything in my library it won't remove from my iphone

    I cannot sync my 4s.  If I uncheck all items on my library it doesn't remove all music from my phone.  If I try to update manually I do not get the drag and drop options that the user guide states I should?

    Did you check "Manually manage music and videos" in iTunes before you tried to drag and drop?

  • I would like to copy all the songs from one Ipod into another. All the songs are into my Itunes account, I tried to drag and drop the songs from the old Ipod to the new one but it doesn't work. Is there a way to do it ?

    Hello everybody,
    I would like to copy all the songs from one Ipod into another. All the songs are into my Itunes account, I tried to drag and drop the songs from the old Ipod to the new one but it doesn't work. Is there a way to do it ?
    I share one Itunes account with other people from my family and one person would like to keep the same songs on the new Ipod as the ones which were on the old one.
    Thanks in advance for your answer.
    Yan

    Hello Chris,
    Thanks for your answer. I was hoping for an easier answer. Too bad there is no drag and drop solution, it would have been much easier.
    Thanks for answering so fast.
    Bye.
    Yan

  • My hard drive crashed on my MacBook Pro crashed and I need to get my CS5 up and running on the new hard drive. I copied what I could onto an external hard drive but when I drag and drop I get directions to uninstall but the uninstall folder I have does sa

    my hard drive crashed on my MacBook Pro crashed and I need to get my CS5 up and running on the new hard drive. I copied what I could onto an external hard drive but when I drag and drop I get directions to uninstall but the uninstall folder I have does says it is an alias that is no longer present. I get error 6. I would like to get my software up and running on the laptop again please

    If you subscribed to iTunes match the songs are kept in icloud. If you didn't but you did save the actual iTunes library folder which should include the music, video, etc.  you should be able to just drag this file back to your machine in the same place and when you open iTunes it will give you a chance to identify the iTunes library folder. 
    You can test this to find out if you saved the media files or not and don't need to attach your nano to do it. 
    You are correct that once you connect the nano it will clear the existing files from it and sync it with the new iTunes library. 
    If you don't have the media files i'm not sure if/how to get them back on a windows ipod.  I have everything backed up regularly because of the horror stories I have seen & heard.

  • Hi - I keep receiving the following error message on a song I purchased from itunes and am now trying to drag and drop to my iPad: "you must download items from icloud before you can copy then to iPad" what does this mean - please help! Thank you

    Hi - I keep receiving the following error message on a song I purchased from itunes and am now trying to drag and drop to my iPad: "you must download items from icloud before you can copy then to iPad" what does this mean - please help! Thank you

    Hi Poonam26c,
    If you do not have a local copy of a song which you have purchased (i.e. it is available via iTunes in the Cloud), you may need to redownload it before you can transfer it to your device. You may find the following article helpful:
    Apple Support: Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/HT2519
    Regards,
    - Brenden

Maybe you are looking for

  • How to Insert the System Date in the entity object

    Hello, I have the problem - in entity object I have one attribute as 'Created_Date' in the <entity>Impl.java, to this attribute I want to assign the value as a System Date. Could someone please let me know how to do this? Thanks

  • Mini still in Production?

    Is the iPod Mini still in production today? I mean is it still being manufactured? The reason why I'am asking this is because, I don't see it advertised on the Apple website.

  • How can i have two main projects?

    Hi, i would like to have two main projects in order to run those at the same time , how can i do that? thanks alvaro

  • Simple and reliable method to preform an OCR on a pdf? [SOLVED]

    I have Acrobat at work which does a wonderful job preforming an OCR (optical character recognition) on scanned pdf files so that one can do keyword searching within the pdf.  I have spent the past hour following-up various guides on the 'net at large

  • How do I adjust Timeline length?

    Hello, I know Pr automatically extend the timeline length but I ran into a problem when the Timeline's grown to 4hr whereas all my assets are 2hr long. Is there any way to shorten the length (they are blank video anyway) of the Timeline? It is also w