OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > Corel Script > CorelDRAW CS

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14-11-2010, 23:08
psitech
Guest
 
Posts: n/a
Default Find document filepath

I have CorelDraw 9 and a script that when finished, I want to save the new file in the same location as that of the original document.
At the moment I can get the filename but the save is always to the folder that the script is run from.
How can I find the full pathname of the current document (which is already open when the script is run).
Reply With Quote
  #2  
Old 15-11-2010, 20:03
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
Is the script big enough that we can see here?
If it can be modified to open the file then use save as then you can use CurDir.
This would be a good workaround.
-John
Reply With Quote
  #3  
Old 15-11-2010, 21:15
psitech
Guest
 
Posts: n/a
Default

I have attached the file (remaned to .txt from .csc)
The idea is to be able to open afile that I want to process, run the script, then send the newly modified file off for printing.
The `Save As' function remembers the document folder so the information must be in CDR but how to get at it?
Attached Files
File Type: txt elby-designs.txt (5.8 KB, 386 views)
Reply With Quote
  #4  
Old 15-11-2010, 22:22
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
I took a look.
Setting the path is easy through different ways, but I can't find a way to get the path of the current open document using the corelscript9.
Shelby or Alex might know.
PS. I did notice the script saves to the last directory you saved a file.
-John
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find a effect using CQL ljesus7 CorelDRAW/Corel DESIGNER VBA 3 06-09-2010 15:22
No jpg filter - where do I find one? Carrowwise General 2 21-12-2008 10:33
Find bitmaps Wendy Hurst General 2 23-11-2007 15:40
How to find out what colors are used in a document? Alex FAQ 1 16-04-2007 22:07
Where to find logos? Alex FAQ 3 25-10-2005 09:00


All times are GMT -5. The time now is 03:56.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com