Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-27-2008, 01:16 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Drag'n'Drop for uploading is working for Windows and Linux. It's not working for the new external windows yet though, also you cannot use it for downloading yet, but that should be added of course.
On Windows RC it's doing it like that (opening the default program association, check for file update and reupload it then). For Mac and Linux that would require some more work, but at least the normal editing of text should be enabled.
Reply With Quote
  #2  
Old 04-27-2008, 02:11 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Robin View Post
It would be good that if/when editing a file within the OS came along it could be done like SmartFTP does it on Windows and Cyberduck does it on OS X. You chose the file to edit, it opens in your chosen Text editor (TextMate OS X) and when you save it, it automatically gets reuploaded.
This is how the external RC does it on Windows.
Quote:
Originally Posted by Skyld View Post
There is already support for drag and drop in the script but it is only available on the Windows client at the minute. Support will most likely be added for Mac soon I think.
Wait .. why does Windows need this? Anyone in their right mind would be using the external RC.
Quote:
Originally Posted by Stefan View Post
Drag'n'Drop for uploading is working for Windows and Linux. It's not working for the new external windows yet though, also you cannot use it for downloading yet, but that should be added of course.
Can we add this, because otherwise it's virtually impossible to use the file browser.
Quote:
On Windows RC it's doing it like that (opening the default program association, check for file update and reupload it then). For Mac and Linux that would require some more work, but at least the normal editing of text should be enabled.
Well, can we add this to Mac and Linux? Like I said, there's no way Windows would need this as they would use the external RC most likely.
__________________
Reply With Quote
  #3  
Old 04-27-2008, 02:37 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by cbkbud View Post
Wait .. why does Windows need this? Anyone in their right mind would be using the external RC.
There are quite a lot of people on Windows using the Scripted RC because it does not need downloading.
Reply With Quote
  #4  
Old 04-27-2008, 02:38 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Skyld View Post
There are quite a lot of people on Windows using the Scripted RC because it does not need downloading.
But not any serious developers ... especially not scripters.
__________________
Reply With Quote
  #5  
Old 04-27-2008, 02:48 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Stefan View Post
For Mac and Linux that would require some more work, but at least the normal editing of text should be enabled.
It would be very easy on Mac; the OS X developers have a command line tool which is used by Finder to open files and applications. You would just use an exec call:
HTML Code:
Usage: open [-e] [-t] [-f] [-W] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames]
Help: Open opens files from a shell.
      By default, opens each file using the default application for that file.  
      If the file is in the form of a URL, the file will be opened as a URL.
Options: 
      -a                Opens with the specified application.
      -b                Opens with the specified application bundle identifier.
      -e                Opens with TextEdit.
      -t                Opens with default text editor.
      -f                Reads input from standard input and opens with TextEdit.
      -W, --wait-apps   Blocks until the used applications are closed (even if they were already running).
      -n, --new         Open a new instance of the application even if one is already running.
      -g, --background  Does not bring the application to the foreground.
      -h, --header      Searches header file locations for headers matching the given filenames, and opens them.
For instance:
HTML Code:
$ open test.txt
... opens test.txt either in the application it is associated with (some files have metadata which contains the program it was created in), or the default selected application otherwise.

The `open' command is not blocking unless you use the -W option; it terminates automatically once the new program has been opened successfully. The application appears as normal in the Dock though, or opens the document in the existing application process if it is already open.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.