Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 13th, 2025, 7:16 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Variable as a Pathname HEADache
PostPosted: June 12th, 2009, 6:39 pm 
Offline

Joined: February 12th, 2005, 5:27 pm
Posts: 177
Location: Canada
Opus: Pro
OS: Win7
I have used <SYSTEM_PUBLICATION_DIR>\myfile.txt as a dir to save data from my pubs....for some reason in XP and Vista it doesnt store the data collected from my PUB to the same folder as the INstall folder.....


Am i using the wrong Variable ????

Or is there a Bug


MY Pub is installed to C:\program Files\MyPub the txt files are at c:\Txt files LOL

What do i do

Thanks in Advance

al Barnes

_________________
-------------------------------------------------------
Win7 AMD +5000 Dual Core with 4 gig ram Geforce 9600 OPUS V7.05 Novice to Scripts/willing to learn , Mp3 Files must be 128kb


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 12th, 2009, 7:26 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Al,

As you've posted in the basic section, I guess you're writing using an Opus Action in which case the syntax is correct although the backslash is not necessary.

If however, this is an OpusScript query then lose the <> and concatenate the path and filename as SYSTEM_PUBLICATION_DIR+"myFile.txt"

Saving data files in Vista programs directory is not good practice though.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 12th, 2009, 8:02 pm 
Offline

Joined: February 12th, 2005, 5:27 pm
Posts: 177
Location: Canada
Opus: Pro
OS: Win7
mackavi wrote:
Hi Al,

As you've posted in the basic section, I guess you're writing using an Opus Action in which case the syntax is correct although the backslash is not necessary.

If however, this is an OpusScript query then lose the <> and concatenate the path and filename as SYSTEM_PUBLICATION_DIR+"myFile.txt"

Saving data files in Vista programs directory is not good practice though.

Mack


Hi Mack,

I am usingthe OPUS copmmands BUT the problem i am having is that The Files are not saving to the programs installation directory BUT the C: instead....??????????????????

Al

_________________
-------------------------------------------------------
Win7 AMD +5000 Dual Core with 4 gig ram Geforce 9600 OPUS V7.05 Novice to Scripts/willing to learn , Mp3 Files must be 128kb


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 12th, 2009, 9:01 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
works fine here:

var textObj = OpenFile(SYSTEM_PUBLICATION_DIR+"myText.txt")
textObj.WriteLine("Interaktiv")

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 12th, 2009, 9:20 pm 
Offline

Joined: February 12th, 2005, 5:27 pm
Posts: 177
Location: Canada
Opus: Pro
OS: Win7
mackavi wrote:
works fine here:

var textObj = OpenFile(SYSTEM_PUBLICATION_DIR+"myText.txt")
textObj.WriteLine("Interaktiv")

Mack


YES it works GREAT but all the TXT files are being saved at the C: promt NOT THE Porgram directory...

Sorry Mack but what i wanted is that all the TXT files of saved INPUT to be saved in the program install directory.....

Al

_________________
-------------------------------------------------------
Win7 AMD +5000 Dual Core with 4 gig ram Geforce 9600 OPUS V7.05 Novice to Scripts/willing to learn , Mp3 Files must be 128kb


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 12th, 2009, 9:26 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
This saves the txt files where ever the IMP / EXE is. If it's in the C:\ root then that's where it saves it. If it's in the program files folder then it saves there.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 12th, 2009, 9:28 pm 
Offline

Joined: February 12th, 2005, 5:27 pm
Posts: 177
Location: Canada
Opus: Pro
OS: Win7
mackavi wrote:
This saves the txt files where ever the IMP / EXE is. If it's in the C:\ root then that's where it saves it. If it's in the program files folder then it saves there.

Mack



Thats the problem is that NOTHING points to the C:root dir BUT the Variables TXT files are being saved there........try it out

Al

_________________
-------------------------------------------------------
Win7 AMD +5000 Dual Core with 4 gig ram Geforce 9600 OPUS V7.05 Novice to Scripts/willing to learn , Mp3 Files must be 128kb


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 12th, 2009, 9:52 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Works perfectly on this side of the world :-)

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 12th, 2009, 10:19 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
:-)

Think you need to have a glass of red wine.

The variable you stated above IS NOT the variable that you have used in the IMP you sent me!

It's the little things...

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 13th, 2009, 9:37 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Al,

Thanks for the email BUT you're still missing the pointing. Look at the attached screen shot.

The variable you have used is SYSTEM_PUBLICATION_DIRECTORY!!

It should be SYSTEM_PUBLICATION_DIR.

The latter works perfectly and saves the text files in the same location as the publication.

Hopefully, Saturday brings sunshine and clarity :-)

Mack


You do not have the required permissions to view the files attached to this post.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 13th, 2009, 12:37 pm 
Offline

Joined: February 12th, 2005, 5:27 pm
Posts: 177
Location: Canada
Opus: Pro
OS: Win7
mackavi wrote:
Hi Al,

Thanks for the email BUT you're still missing the pointing. Look at the attached screen shot.

The variable you have used is SYSTEM_PUBLICATION_DIRECTORY!!

It should be SYSTEM_PUBLICATION_DIR.

The latter works perfectly and saves the text files in the same location as the publication.

Hopefully, Saturday brings sunshine and clarity :-)



Got it.......................

How the hell did i come up with that VAR LOL..............

Thanks Mack ( Humbled )


Al

Mack

_________________
-------------------------------------------------------
Win7 AMD +5000 Dual Core with 4 gig ram Geforce 9600 OPUS V7.05 Novice to Scripts/willing to learn , Mp3 Files must be 128kb


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group