Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old Nov 27, 2012, 03:15 PM   #1
etnad
macrumors newbie
 
Join Date: Sep 2012
Please help fixing this NON WORKING script

This isn't a working script but I hope someone can kindly fix it for me. is only what I would like to get based on another script which reads the first line in a tet file.
After this "non working Script" you will find additional explanation about my process

I am using Snow Leopard because of the lack of Rosetta in the various Lions (due to the indifference form Apple computers to renew the Rosetta licence held by PowerPC IBM [mysteries of computer companies deals]

Code:
set theDoc to choose file with prompt "Select:"
tell application "TextWrangler"
   set theDoc to document 1
   set parag to (count of paragraphs of text of theDoc)
       set Para to parag - 1
           select paragraph Para of theDoc
           if Para contains :"Myserverita"
           tell application "transmit"
           activate 
           connect to favirite "Myserverita"
           end tell
           exit script
          if Para contains :"MyserverOther"
           tell application "Safari"
           activate 
           end tell
           exit script
           else if
           Content Para contains :"MyserverFrance"
           tell application "speedownload"
           activate 
           end tell
           exit script
           else if
           Content Para contains :"MyserverGermany"
           tell application "Rapidshare Manager"
           activate 
           end tell
           exit script
 
end tell

Why I need this?

I need to upload download various large files often over 100 GB of space (mainly tentive film editing) and receive changes on the files.
All this happens either through ftp as we all have servers or most frequetly using the filesharing services such as rapidshare and so on, or news servers

Each series of files consists in Rar segments and PAR2 files to fix possible transmission errors. Each file is password protected as only my coworker world wide can load them.

The files are so very large because they are "raw" files, and often include FinalCUtPro additional data in video and sound.

Some of these apps are in Java and they do not have Applescript support at all, however I hope the Finder will still be able to activate them

Once opened the various apps willl be opened I will manually perform what is necessary to either upload or download the various files.

I'am aware of professional applications "srot of" doing this already: however they do not suit my needs. Any confrntation on this matter is beyond my request which I hope will not bother anybody. In my country Internet is very slow and I have no choice.
Because of this I need to use 2 or 3 mqachines and two or 3 different Interent lines else my router becomes an electric turtle and really I can only barely use internet

As I might be not too clear please let me know and I will organize this request again ....

Thanks a lot

Last edited by dejo; Nov 27, 2012 at 07:35 PM. Reason: Please use [code] tags.
etnad is offline   0 Reply With Quote

 
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Geektool: ram script not working on mavericks?? beaumk UI Customization 0 Jan 20, 2014 05:36 PM
SMB login script to DiskStation has stopped working?? jmpage2 OS X 10.8 Mountain Lion 1 Aug 24, 2013 12:47 PM
Launchd and auto-enroll certificate script not working blabla296 Mac Programming 1 Jul 29, 2013 01:28 AM
Apple Script -> Copy and Paste HTML content - Not working gguerini Mac Programming 2 Apr 10, 2013 04:49 PM
UI login apple script not running on 10.8.3 but working fine on 10.6.x abidkhan135 OS X 10.8 Mountain Lion 0 Apr 2, 2013 01:39 AM

Forum Jump

All times are GMT -5. The time now is 07:57 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC