AbsoluteURI doesn't seem to work

Attempting to use absoluteURI on a Folder selectDlg or a File saveDlg and I can not get an absolute path - I always return this: ~/Desktop/tmp00000001
Which doesn't work. I'm using node.js and the fs system which won't accept the output of Extendscript.
Anyone have any good ideas? I'd post over on the Extension forum, but it's deader than a doornail.
function chooseExportFolder () {
    var myLocFolder = new File("~/Desktop").saveDlg("Enter a prefix for Export(s).");
    return myLocFolder.absoluteURI;

//In one function
var new_termfile = createtermfile('my_term_file_name', first_argument, second_argument);
//Put in however many arguments you need
//As it's own function
function createtermfile(term_file, first_argument, second_argument)
//passing in the my_term_file_name puts it into this file name and reassigns it.
var termfile = new File(path + "/" + term_file + '.term');
termfile.open('w');
//Change for when you port to Windows
termfile.writeln(
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\"" +
"\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n" +
"<plist version=\"1.0\">\n" +
"<dict>\n" +
"<key>WindowSettings</key>\n" +
"<array>\n" +
" <dict>\n" +
"<key>CustomTitle</key>\n" +
"<string>TITLE GOES HERE</string>\n" +
"<key>ExecutionString</key>\n" +
"<string>python /path/to/python/file.py " + first_argument + " "  + second_argument + "\nexit()</string>\n" +
"<key>shellExitAction</key>\n" +
"<integer>1</integer>\n" +
"<key>type</key>\n" +
"<string>Window Settings</string>\n" +
"</dict>\n" +
"</array>\n" +
"</dict>\n" +
"</plist>\n");
termfile.close();
return termfile;
That's the extent of my knowledge on the term files - management didn't love the fact that Adobe was causing tons of Terminal windows to pop up so I ended up having to do everything in Javascript/Extendscript which was not a fun trip. Just be aware that this will create a profile EVERY TIME YOU RUN IT - therefore I had thousands of Terminal profiles inside of Terminal in Preferences > Profiles. So there's probably a more efficient way to do it than this, but this is the groundwork for what I did. Be wary of using Applescript in the python string area - not because of anything bad happening, just pay attention to how many escape characters you need for stuff like spaces. I think it's two. Hope this helps.

Similar Messages

  • Wacom Tablet doesn't seem to work all of the time?

    I have a Wacom Intuos 3 tablet, not more than a year old. I recently installed it onto my Macbook Pro and it worked fine, but when I unplugged it and came back to work with it later, it doesn't seem to work. The mouse doesn't respond to where I click on the pad.
    So, I've reinstalled this a couple of times and was able to make it work perfectly, but today when I went back to work in photoshop, it doesn't seem to be responding again.
    Does anyone have any tips? I know that Leopard likes you to eject USB devices instead of just pulling them out of the slot, but I don't see anywhere to eject it.
    Does anyone know what's up?

    Downloaded a driver from website, tablet works now.

  • Safari on my iPhone 6 running 8.02 doesn't seem to work right. Some Java scripts don't show correctly and they do on other browsers I have downloaded. I tried almost everything and nothing seems to work to fix it. Please help.

    Some websites like the one of my college uses JavaScripts and they seem to load correctly to a certain point but then not really. For example in one it would say select an option from the left menu. And I do it hut nothing happens. But when I go to the same website in another browser on my phone. The JavaScript works completely and allows me to see whatever I was clickig on that menu. I have seen that there are other websites being affected too. I tried clearing my cookies and data. even restarted my phone. And doesn't seem to work. I don't know how change the configuration any more to make it work like normal. At first I thought it was my school's website but it never got fixed. And now I realized is my safari browser! I wanna keep using it since I am really familiar with It. If someone knows how to fix this please let me know!
    Thanks

    You can reset the SMC and see if that helps. If it's a unibody or Retina, follow the method for "a battery you should not remove yourself."
    http://support.apple.com/kb/ht3964

  • I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?

    I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?    

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • I'm travelling and trying to back up my new iPhone to iCloud. I have sufficient storage, am connected to wifi and it's plugged into a power source and yet it doesn't seem to work. Can anyone suggest what I'm doing wrong?

    I'm travelling and trying to back up my new iPhone to iCloud. I have sufficient storage, am connected to wifi and it's plugged into a power source and yet it doesn't seem to work at all. I'm currently in India. Could that be the cause or can anyone suggest any reason why this wouldn't work?

    "gets stuck" - are there any error messages?
    If you get the error "Backup not successful" and you've tried deleting the last backup and trying to back up manually without luck, try the following test:   Go to...
    Settings>iCloud>Storage & Backup>manage Storage, tap your device name in the Backups section, then look under Backup options.  Turn off all apps from backup and then do a manual backup.  If that doesn't work, then this post will not help.  If the backup works, then go back to the app list and turn some on and try another backup.  If successful, keep repeating these steps.  If it fails at some point, then try to zero in on the one app that seems to make the backup fail.  (I had this problem and found one app failing, probably due to a corrupt data file.)
    This process will take time, but if a backup works with no app data being used but clearly fails with the original settings, then somewhere in the mix of apps is a "bad" one.

  • Pdfmark code in MS Word 2008 doc doesn't seem to work properly to create Named Destination

    Hi all,
    I've been having trouble with creating Preview-compatible Named Destinations in Acrobat 9.x (see http://forums.adobe.com/thread/770470?tstart=0).  Distiller, on the other hand, appears to create compatible Destinations, so as a last-ditch effort, I tried to go back to my original source file (Microsoft Word 2008 document) to use Distiller's pdfmark functionality, to see if maybe I could finally get a PDF with Preview-compatible Destinations.
    Following instructions found elsewhere on this forum, I went into Word and inserted the following field into a test location in my document:
    PRINT "[ /Dest /testdest /View [ /XYZ null null null ] /DEST pdfmark"
    This field code is supposed to then cause a pdfmark to be inserted into the resulting PostScript and/or PDF files.  Distiller is supposed to understand this and turn it into a Named Destination called "testdest."  However, it doesn't seem to work - I don't see the pdfmark code in the PS file, and the PDF file doesn't have any Named Destinations in it.
    I'm using Acrobat 9.x on Mac OS X 10.6.5, so I tried this two different ways:
    1) Using the "Print to Adobe PDF" workflow (which replaced the "Adobe PDF Printer" from previous OS/Acrobat versions) - this automatically generates a PDF via (presumably) an API call to Distiller... and
    2) Using the "Print to Postscript" workflow to generate a PS file, which I then ran through Adobe Distiller.
    In neither case did I end up with a named destination in the PDF file, as I was supposed to.  In case #2, even the Postscript file didn't have a pdfmark embedded in it.  Thus, I'm assuming that perhaps this is particular issue may be a problem with MS Word 2008 rather than with Acrobat... but I'm hoping someone might have a clue as to how to fix it.
    I welcome ideas on how to get Word 2008 to properly output pdfmark code, so that Distiller will pick it up and properly embed a Named Destination into the PDF...
    Thanks in advance.
    (If anyone has ideas about the Preview-compatible problem, linked above, that would also be great!)

    You're suggesting that it was never fixed from Word 2004 to 2008?  Possibly.  I wonder if it's fixed in Word 2011?  Anyone know?  But is it really a Word problem, rather than a Distiller issue?
    I appreciate your offer, though I do have access to Word on Windows (2003, I think), so I could try Distilling there... I only worry about formatting, since there are minor differences (e.g. font kerning, etc.) between Mac and Windows that are subtle, but sufficient to create formatting issues for very long documents (e.g. pushing figures onto the wrong pages, etc.).  That would be a rather big problem.
    The question remains whether this is an issue with Word or Distiller, though... and whether it's fixed in Distiller X and/or Word 2011.
    Adobe, care to comment?
    I'd really love to find a proper Mac solution, if one exists... it would be rather a slap to Mac users if a solution doesn't exist.

  • Hi I'm running Addressbook and cannot clear previous entry easily when searching my data base of around 5,000 contacts.    I prefer to view in All contacts on a double page spread with details on the right page.  Searching doesn't seem to work correctly i

    Hi I'm running Addressbook and cannot clear previous entry easily when searching my data base of around 5,000 contacts. 
    I prefer to view in All contacts on a double page spread with details on the right page.  Searching doesn't seem to work correctly in this view.
    It's always the second search that is problematic.
    I've tried typing over and all it seems to do is confine the search to the the entries that have come up for the previous search.
    I've tried to use the x to clear the previous entry and then type the next search, same problem.  The only way seems to be to move from "All Contacts" to "Groups".  Then the searched name appears and I can return to All Contacts to see full details.
    Surely three key press' are not the way it's supposed to work?
    FYI
    Processor  2.7 GHz Intel Core i7
    Memory  8 GB 1333 MHz DDR3
    Graphics  Intel HD Graphics 3000 512 MB
    Software  Mac OS X Lion 10.7.3 (11D50d)
    Address book Version 6.1 (1083)
    MacBook Pro, Mac OS X (10.7.1), 8Mb RAM 2.7Ghz i7

    AddressBook experts are here:
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion#/?tagSet=1386

  • I have Adobe Design Standard CS6 purchased 2013 with serial number but cannot find to download it onto a new mac laptop. When I try and add the 24-digit serial number to my account it doesn't seem to work?

    I have Adobe Design Standard CS6 purchased 2013 with serial number but cannot find to download it onto a new mac laptop. When I try and add the 24-digit serial number to my account it doesn't seem to work?

    CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS6: http://prodesigntools.com/adobe-cs6-direct-download-links.html

  • TS5183 My Iphone has a problem with the microphone it doesn't seem to work! so there for i can't use Siri anymore..:-( this has been playing up for some time now.

    My Iphone has a problem with the microphone it doesn't seem to work! so there for i can't use Siri anymore.. this has been playing up for some time now. But as my wife & I had a baby 7 Months ago I have not found the time to pop in to the apple store until today (8/12/13) and they told me that they couldn't help as it's out of it's warranty by 57 days
    Can antone help me? is there something i can do, apart from buying a new iphone!

    Have you got Siri turned on in settings/general/restrictions?

  • My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    Thank you both for your responses but my daughter was reassured by the salesman in the iStyle store (official Apple store in the UAE) that iMessages would work but conceded that FaceTime wouldn't. My iTunes account is registered in the uk and my daughter's iPhone has iMessages even though she bought it (and uses it) in Dubai. Can anyone else throw any light on this?

  • Can a use a partitioned external hard drive to create a disk image? I tried, doesn't seem to work using disk manager.

    Can a use a partitioned external hard drive to create a disk image? I tried, doesn't seem to work using disk manager.

    OK, it's very bad computing to use a backup disk for anything but a backup. The reason being is if/when the HD crashes you will have lost not only all your backup but the data files. While I commend you for wanting redundant backup, you really need separate EHDs for doing so. Format each EHD using Disk Utility to Mac OS Extended (Journaled) using the GUID parttition. When you connect, OS X will ask if you want to use that drive as a Time Machine backup drive, select yes and then let it backup. On the second EHD format the same way however do not use TM as a backup, this time I'd suggest an app such as SuperDuper or Carbon Copy Cloner to make a clone of the internal HD. Leave both EHDs connected and TM will backup new or changed files automatically on a hourly basis. The clone you will need to set to backup on the schedule you want. For example I have my SuperDuper EHD set to backup only changed or updated files at 2AM every day.
    The advantage of a clone is that if the computers internal HD crashes you can boot from a clone and continue working, TM will not do that but it's great for keeping an archive of all files. So if you want a version of a file from many months ago, TM will help you locate and restore it.

  • I used to be able to download files from the Harddrive of my Sony Handycam, but now it won't let me import them while going through "log and transfer."  I have tried to update my settings, but this doesn't seem to work.  Any help would be much appreciated

    I used to be able to download files from the Harddrive of my Sony Handycam, but now it won't let me import them while going through "log and transfer."  I have tried to update my settings, but this doesn't seem to work.  Any help would be much appreciated

    Hard Drive:  The Hard Drive is on my camera (Sony Handycam)
    Just needed some info on what is going on with your particular system.
    Knowing the exact camera model will also assist us.
    If this camera is standard AVCHD you should be able to connect with USB to Mac with FCE open and use Log and Transfer without all the fiddling around converting etc.
    What FCE does during ingest is convert files to AIC. (Apple Intermediate Codec)
    FCE cannot read the individual files in the BDMV folder, that's why all the converting is required when you use that method.
    BTW: regards formatting drives/cards/memory on cameras; it is wise to use the actual device to format rather than a computer. This is a prime cause of read/write goof ups with solid state media. This applies to still or video cameras.
    Keeping the COMPLETE card/memory structure in tact is vital for successful transfers.
    Try here for some trouble shooting tips:
    https://discussions.apple.com/message/12682263#12682263
    Al

  • I want pictures from each device in the cloud, but not on every other device. Possible? "iCloud Backup" alone doesn't seem to work....

    My goal is to acheive 3 of the following things.:
    Have all my apple devices sync pictures to the icloud *without* syncing the pictures on all the devices...so just one direction from device to cloud and not have all the devices insync from the cloud...... I don't want all the devices in sync, I just want the pictures protected in the cloud. To do this, I've tried to just turn on "icloud bacn-up" and not turn on "photo stream" to acheive this, but doesn't seem to work.
    If #1 is possible, then I would like to sync the icloud with a folder on my PC using the icloud app for the PC. Not sure if I can have only the icloud PC sync and not have all the devices in sync?
    If #1 and #2 could work, then I would sync the PC folder with my local storge.
    end result would be all my photos save in the cloud and a safe copy my home in my local storage. I would have thought that most people would want to do this, but doens't seem so obvious to me as to how I can get it to work?
    Any help would be appreicated.
    thanks

    You can't use iCloud as a safe place to store your photos when they are deleted from your devices.  iCloud designed to stream photos to your devices, and to back up photos currently on your your devices as part of your iCloud backups.  However, photo stream photos only remain in iCloud for 30 days, giving your devices enough time to download them.  And if you delete a photo stream photo from any of your devices, it is also deleted from iCloud and from all of your devices.  Furthermore, while camera roll photos are included in your backup, if you then delete the photos from your device and continue backing up, the backup containing the deleted photos will be overwritten by one that doesn't, and they will be lost.
    If you want to save your photos, import them from the camera roll to your computer as explained here: http://support.apple.com/kb/HT4083.  Then you can delete them from your device.
    If you would rather have a cloud-based place to store your photos, look into a service such as Dropbox.

  • How to reflect db changes - Verify Database doesn't seem to work

    I have changed a database (MS SQL Server) column from varchar 255 to varchar 1000, but the designer doesn't pick up the change.
    I read that db changes can be picked up by using 'Verify Database' feature. It doesn't seem to work for us though. Is there any configuration to turn on for the feature to work properly or any work-around to refresh the database changes?
    We are making the database connection using JDBC (JNDI) option since the report is being used in a Java web application.
    Any comments or insights will be very much appreciated!

    Hi Wallie,
    Thank you very much for your reply! Here are the answers to your questions.
    Are you able to create a new report off the modified database?
    ==> Yes.
    Do new reports see the changes made to the database?
    ==> No.
    Are the reports connecting directly to the database table, or is it a stored procedure, business view, universe being used?
    ==> Through a business view.
    By the way, after trying so many things, I was able to figure out the reason. Since the report is using a view, not directly the table, the view itself had to be recompiled to reflect the table changes so that the view could pass the changes to the report. It was a very good thing to know. Your last question could have been a very helpful insight for this issue! Thank you so much again!

  • Oraenv doesn't seem to work

    Version : 11.2.0.3
    Platform : Oracle Linux 6.3
    oraenv doesn't seem to work as shown below. I haven't set ORACLE_SID in the .bash_profile as this server is going to have multiple DBs in future. So, I need to use oraenv script to set env variables.
    Trying to source oraenv file.
    $ . oraenv
    ORACLE_SID = [oracle] ?
    Ideally, it should prompt the SID listed in /etc/oratab file. So, in this case it should be something like
    $ . oraenv
    ORACLE_SID = [oracle] ? GRCFMS
    Here are the contents of my /etc/oratab file and .bash_profile
    # su - oracle
    $
    $
    $
    $
    $
    $
    $ whoami
    oracle
    $ pwd
    /home/oracle
    $ cat .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    # User specific environment and startup programs
    #PATH=$PATH:$HOME/bin
    #export PATH
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/dbhome_1
    #export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=$PATH:$ORACLE_HOME/bin:/usr/bin:/bin
    $
    My oratab file
    $ cat /etc/oratab
    # This file is used by ORACLE utilities.  It is created by root.sh
    # and updated by either Database Configuration Assistant while creating
    # a database or ASM Configuration Assistant while creating ASM instance.
    # A colon, ':', is used as the field terminator.  A new line terminates
    # the entry.  Lines beginning with a pound sign, '#', are comments.
    # Entries are of the form:
    #   $ORACLE_SID:$ORACLE_HOME:<N|Y>:
    # The first and second fields are the system identifier and home
    # directory of the database respectively.  The third filed indicates
    # to the dbstart utility that the database should , "Y", or should not,
    # "N", be brought up at system boot time.
    # Multiple entries with the same $ORACLE_SID are not allowed.
    GRCFMS:/u01/app/oracle/product/11.2.0.3/dbhome_1:N
    $
    $
    $

    Max wrote:
    Version : 11.2.0.3
    Platform : Oracle Linux 6.3
    oraenv doesn't seem to work as shown below. I haven't set ORACLE_SID in the .bash_profile as this server is going to have multiple DBs in future. So, I need to use oraenv script to set env variables.
    Trying to source oraenv file.
    $ . oraenv
    ORACLE_SID = [oracle] ?
    Ideally, it should prompt the SID listed in /etc/oratab file. So, in this case it should be something like
    $ . oraenv
    ORACLE_SID = [oracle] ? GRCFMS
    Here are the contents of my /etc/oratab file and .bash_profile
    # su - oracle
    $
    $
    $
    $
    $
    $
    $ whoami
    oracle
    $ pwd
    /home/oracle
    $ cat .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    # User specific environment and startup programs
    #PATH=$PATH:$HOME/bin
    #export PATH
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/dbhome_1
    #export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=$PATH:$ORACLE_HOME/bin:/usr/bin:/bin
    $
    My oratab file
    $ cat /etc/oratab
    # This file is used by ORACLE utilities.  It is created by root.sh
    # and updated by either Database Configuration Assistant while creating
    # a database or ASM Configuration Assistant while creating ASM instance.
    # A colon, ':', is used as the field terminator.  A new line terminates
    # the entry.  Lines beginning with a pound sign, '#', are comments.
    # Entries are of the form:
    #   $ORACLE_SID:$ORACLE_HOME:<N|Y>:
    # The first and second fields are the system identifier and home
    # directory of the database respectively.  The third filed indicates
    # to the dbstart utility that the database should , "Y", or should not,
    # "N", be brought up at system boot time.
    # Multiple entries with the same $ORACLE_SID are not allowed.
    GRCFMS:/u01/app/oracle/product/11.2.0.3/dbhome_1:N
    $
    $
    $
    if in fact you did exactly as posted above, the su - oracle established a new process which knows nothing about the previous invocation of oraenv
    BTW - never use OS "root" when dealing with Oracle DB

Maybe you are looking for

  • How to use more than one connection pool to 2 different databases ??? (Weblogic 5.1)

    Hello, In my application, I must use two different databases to retrieve informations... My application use EJB so I created two pool of connection named pool1 and pool2... But when I yet used the pool1 to connect to first database and I try to use t

  • 15" Macbook Pro will not boot up

    15" Macbook Pro, from late 2007 early 2008. I have tried everything, resetting pram, smu etc. Reseating RAM, removing battery, booting in safe mode, booting from OS disc, booting in target mode, nothing work, seemingly tried everything. The firewire

  • FileNotFoundException Uploading image to database

    Hello I'm trying to upload image to databases, in my server it works perfectly but when i run the application in the hosting appear FileNotFoundException. This is the part of html file than call to servlet. <FORM ACTION="http://hosting/servlet/lordcy

  • How do I make all new tabs open on the far right?

    I do not want to use tab groups, or have a tab open to the immediate right of current tab. Whenever I open a new tab I want it to open to the right of all other tabs.

  • Add third physical system to logical system

    Hi ,   We are using GRC AC 5.3 SP12 ( Back end ECC6 HR ) , we have connected our GRC DEV system to DEV 100 and DEV 200 clients , now i have connected QAS 100 client to the same system ( GRC DEV) , we have already created a logical system ERP( with Bo