Eventlistening: Pass OSX username to image's author prop?

Cheers,
When the open document event is triggered I need to write
the OS active username to the file's author property. OS is Apples
OSX, and Bash command "whoami" will return current user.
But making the username string availble to Photoshop has become
quite a challenge..
Using BridgeTalk my idea was to execute the command via the
Bridge's method app.system():
// via Bridgeapp.system("\"whoami\""); // returns "0"
Unfortunately app.system() appears to be one-way communication only..
The second idea is to execute a few Applescript lines via InDesigns
doscript method (via BridgeTalk from Photoshop):
set username to do shell script "whoami"
.. and return the resulting object to Bridge, and back to Photoshop
where it's written to the author property.
Last idea is to execute a shell script via Bridge's app.system()
that will write the username to a file in some location. When the
open document event is triggered the js script will look for this
file and perform the nescessary writing.
All ideas and hints are welcome! :-)
Thanks,
Rasmus

That does the job as well :-) Are these enviroment vars listed somewhere?
I've can't seem to find anything in the scripting guides.
Rasmus

Similar Messages

  • How do I pass a username form variable from a drop down list/menu to another page?

    Hi,
    I have a login_success.php page that has a drop down list/menu (which lists usernames). I want the user to click on their user name, and when they click the submit button the username information to be passed over to the username.php page which will contain a recordset, sorted by username.
    How do I pass the username info from the drop down list/menu to the username.php page?
    The drop down menu is connected to a recordset listUsername, I have filtered the recordset with the Form Variable = username, and I have used the POST method to send the username to the page username.php. I'm not sure how to structure the php or which page to place it on.
    <form id="form1" name="form1 method="post" action="username.php">
         <label for="username_id">choose username:</label>
         <select name="username_id" id-"username_id">
              <option value="1">username1</option>
              <option value="2">username2</option>
              <option value="3">username3</option>
              <option value="4">username4</option>
         </select>
         <input type="submit" name="send" id="send" value="Submit" />
         <input type="username" type="hidden" id="username" value="<?php echo $row_listUsername['username']; ?>" />
    </form>
    Could somebody help me please?
    Thanks.

    I would not post the variable over, In this case I personally would send it through the URL and use the $_GET method to retreve it. For Example.
    <html>
         <head>
              <title>Test Page</title>
              <script type="text/javascript">
                   function userID(){
                        //var ID = form1.userIDs.selectedIndex;
                        var user = form1.userIDs.options[form1.userIDs.selectedIndex].value;
                        window.location = "test.html?userID=" + user;
              </script>
         </head>
         <body>
              <form id="form1">
                   <select name="userIDs" id="userIDs" onchange="userID();">
                        <option>Select a User</option>
                        <option value="1">User 1</option>
                        <option value="2">User 2</option>
                        <option value="3">User 3</option>
                        <option value="4">User 4</option>
                   </select>
              </form>
         </body>
    </html>
    //PAGE TO RETRIEVE THE USERNAME
    <?php
    if(isset($_GET['userID'])
         $userID = $_GET['userID'];
         echo $userID;
         die;

  • Pass the username and password in URL to auto log in the application from SharePoint List

    how to Pass the  username and password in URL to auto log in the application from SharePoint List  
    I have a link  in my SharePoint list  when user try to open the link its asking username and password .i want to put username and password in URL to auto log in into that external URL from sharepoint
    please help me it is possible

    Check out
    http://serverfault.com/questions/371907/can-you-pass-user-pass-for-http-basic-authentication-in-url-parameters
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Passing the username and password via report link

    How can I pass the username and password via the reprt link?
    thanks all.
    Ahmad Esbita

    Hi,
    Jigar Oza
    Thanks for u r reply, i have tried with application integrator but there is a problem with usermapping.
    now what i have done is created HTTP System based on this system created URL iView,in application parameters username and password as MappedUser and MappedPassword every thing is working fine. user  logged in automatically when he logged into portal.
    there are tabs ,links in application .when i click on tabs or links it is assking to enter username and password of the application.
    did i do any thing wrong in creating HTTP system or URL iView,
    what are the necessary properties should be given.
    replys are highly appreciated.
    Regards
    K Naveen Kishore

  • Royal Battle Bears game is suddenly denying me access. Is asking me to sign in and when I get my pass and username doesn't recognized it? Helpppp

    We have been using the game frequently since we bought the app, our last purchase related to the game accesories was on June 22 but in June 25 the game started to asking for my pass and username, when I put the info in doesn't recognize it and marks it as invalid. What should I do? If I p[en a new account all the info gained in the game would be lost :{

    You might get more help contacting the developer, or checking to see if anything is mentioned about it in the App Store.  If there is a general problem with an app, the developers will sometimes post a statement about it, or reviewers will say something about it.  It may be an issue with their server capacity or something.

  • Is there a way to pass a username/password to Flash Media Live Encoder?

    I don't know if this is the right place to ask this or not, but I thought I remembered a way to pass a username and password to FMS via Flash Media Live Encoder? I simply need to pass two values, equivalent to this in AS3:
    netConnection.connect(url, "username", "password");
    My application requires authentication for publishers for security reasons, and for some reason, I can't find the option for doing this in FMLE. Am I missing something?

    You cant pass in connect arguments, but what you can do is pass them in as GET vars on the connection url, and then inspect the client.uri property in your server side onconnect handler.

  • Pass an array of images???

    I am very new to java and my instructor gave us an assignment of doing a matching game using JButtons and an applet. I have 2 separate .java files (MemoryApplet.java and MemoryGame.java). MemoryApplet intializes the applet and passes an array of images to a method using the following code...
    icon = new MemoryGame();
    for(int i = 0;i<6;i++)
    imgArr[i] = getImage(getCodeBase(),"img" i".jpg");
    icon.setTheIcons(imgArr);
    In the MemoryGame file my setTheIcons method looks like this...
    public void setTheIcons(Image icon1[])
    The problem I am having is that I cannot convert the Image to an ImageIcon to put the image on the JButton. When I passed each image by itself not using an array, it worked fine, but I want to randomize the image locations so I thought passing the array would be the way to go. Any help would be greatly appreciated.
    Thanks, Chad

    If you want to use those images in JButton, so use the ImageIcon arrays like this:
    MemoryApplet
    // declare ImageIcon array
    ImageIcon[] imgArr = new ImageIcon[6];
    for(int i = 0;i<6;i++)
      // create new ImageIcon
      // path: path of images
      imgArr[i] = new ImageIcon(path + "img" + i + ".jpg");
    // initialize MemoryGame instance and call method
    icon = new MemoryGame();
    icon.setTheIcons(imgArr);Hope this help
    Liwh

  • Trying to pass Login username and password from a non-Oracle Form

    I have a form that I am trying to use to pass a login username and password to an Oracle form. The problem is I know Oracle 10g web reports can take login parameters in a URL, but I can't seem to figure out how to encode/hide it and have Oracle read it. I want to be able to hide the username and password (obviously for security) and I also want to be able to pass special characters... does anyone have suggestions? It seems even in Oracle forms there are some issues passing login info because I have built in parameter forms... I have given myself quite a headache either way! We are trying to upgrade from an old, old version of forms and reports and are trying to use as much orginal code as possible. It all works if I pass plain text user name and password... any help would be sooooo appreciated. By the way on the Oracle side I am still pretty much an infant developer... please talk slow and use simple words... ;-p
    Thanks again for any help!
    Va

    ...asking me to enter username and password on a non-secured website, or else thy will destroy my account. Is it legit ?
    It is definitely a scam.  Delete it immediately.
    For more information, see this document:
    Identifying fraudulent "phishing" email

  • Default password "PASS" for username SAP* not accepted for new client

    I have created a new client, client 200 in my SAP system. I assigned it to a logical system properly and exist as one of the clients on the system together with the default clients "000", "001" and "066". The problem is that when i try connecting to this newly created client using the credentials Username: SAP*, Password: pass i get an error as follows:
    name or password is incorrect (repeat logon).
    I also tried the password that i use to connect to the default clients and i get the same error message. Please assist.

    Hi,
    Set parameter login/no_automatic_user_sapstar with value 0 in t-code: RZ10 then restart SAP system.
    User SAP* may get locked due to incorrect login attempts. So, delete SAP* record from database level.
    > sqlplus / as sysdba
    SQL> delete from sapsr3.usr02 where bname='SAP*' and mandt='<client number>';
    it should show 1 rowe deleted..then
    SQL> commit;
    Now system will allow you to login with user SAP* and password 'pass'
    With Regards,
    Renu

  • Dynamically pass the username and password to report server to invoke reports

    Hi
    The scenario is as follows:-
    9iAS is installed under - Windows 2000 (web server and report Server 6i) and everything works fine.
    We have developed a page using pl/sql cartrige (oracle 8i), from that a report is invoked with some parameters. However, the userid and password is stored under keymap file (cgicmd.dat).
    Is there anyway to pass dynamically the username and password to report server in order to invoke the report.?
    Can any one advise?
    null

    Check out
    http://serverfault.com/questions/371907/can-you-pass-user-pass-for-http-basic-authentication-in-url-parameters
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Osx 10.4 image

    hi,
    I have a powerbook g4 with no hdd cable, so i cannot install macos, i tried using a usb hdd but it wouldnt let me install on it either. Since i have no other mac computer i cant make an image. So i used pearpc to install mac os to an image file on my hard disk on a windows based computer, now i have an image file with mac on it on my windows xp computer. How can i extract this image onto the usb hdd making it bootable on the powerbook?

    its a powerbook g4 (laptop) without a hdd cable meaning i cannot connect a hdd to it, so when i install macos on it it asks for a hdd, which i dont have. so i connect a usb drive (a laptop hdd connected using a USB cable) it detects it but it cannot install to it, it says something like cannot use as startup device or something like that, i formatted it using mac filestystem journaled.
    The image has mac osx actually installed on it, i used pearpc, a program that emulates PPC on windows, i made a blank 6gb image file and used pearpc to install to it using a legit macosx 10.4 dvd, i would of directly installed it nativley to the usb hdd but it doesent support this yet so i had to install it to the image.
    what i want to do is somehow extract the image to the hdd and make it bootable on the powerbook or maybe find another way to install macos on a usb hard drive.

  • Comment faire apparaître un texte en passant la souris sur image

    Bonjour 
    je suis chargée à réaliser une application en utilisant  Labview pour réaliser une sorte de reporting continu des cartes électroniques. La première étape consiste à réaliser une interface graphique qui permet d'insérer une image prise de la carte, de zoomer et en passant le curseur de la souris, (ou avec un click), les informations concernant le composant s'affichent dans une zone de texte. Pouvez vous me donner un petit coup de main et me donner des indications pour pouvoir afficher les caractéristiques du composant sélectionné dans la zone texte .
    Merci d'avance 

    Hello oumaima.raini,
    Please note that this part of the forum is mainly populated by an English speaking population (native or second language).
    Some of them can understand and or write French, most might not be able to fully understand what you have written in French and would need to resort to Google Translations.
    If you want to discuss your application in French, then you can go to the following part of the forum:
    http://forums.ni.com/t5/Discussions-au-sujet-de-NI/bd-p/4171
    If English is ok for you, then the right place to continue would be on this part of the forum.
    The first thing I would like to ask you is the following:
    - Which part of your application have you already done? (please post example code)
      Or in other words: what have you already tried?
    - Where are you exactly stuck at this moment?
    - What does the image you refer to look like? (please share an example)
    Thanks in advance for your feedback!
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Pass application username to db package var

    I am trying to pass the application username to a database package variable. I thought I could use a "Process" - "On New Instance.After Authentication" that would execute a pl/sql procedure that accepts v('APP_USER') as a parameter and then sets a package variable equal to APP_USER.
    I don't seem to be getting the APP_USER value assigned in my HTMLDB Process. Any ideas?

    Scott - There are two problems with this. First, If you set a package variable using an On New Instance process, it'll only fire once per HTML DB session and that value would be available to your package during the first page view only. On page views after the first, the package variable would have whatever initial value is defined for it in the package. (But, maybe you're capturing that value at the right time and saving it in a table.)
    Second, APP_USER isn't set until you submit the login page, well after the On New Instance firing point has passed (despite the misleading tag On New Instance - After Authentication). So you'd be better off using an application process that fires before header only when APP_USER is not in ('nobody','HTMLDB_PUBLIC_USER'), that kind of logic.
    Scott

  • I have two questions about my podcast on iTunes - Image and Author

    Hello. I have very recently added my podcast to iTunes,  by submitting the RSS-feed that is given by wordpress (that's where I have my podcast homepage) It looks allright, and the feed includes Name of podcast, title of podcast shows, description and in some cases even length of the podcasts. There's two things not showing though, and that's an image for the iTunes page, and the name of the authors.
    I'm not sure if you're allowed to link to your feed like this, but here is however the feed that I've sent to iTunes: http://rodrost.wordpress.com/category/podcast/feed/ . I thought that the picture up in the right (of me and a friend) would be the picture showing up on iTunes. And I don't understand where in my feed to put in the authors. If you could answer my questions I would be very grateful, thank you.
    / Joar.
    (This is how it looks on iTunes http://itunes.apple.com/se/podcast/rodrost-podcast-podcast/id507886804 )

    Posting your feed URL is not only allowed, it's necessary to get answers to most questions, so thank you for posting it.
    You are missing some necessary entries in your feed. The second line of your feed should include the 'iTues declaration':
    xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"
    which should be added within the 'rss' tag. Without this iTunes cannot read the 'itunes:...' tags which are in any case missing. The image is carried in the 'itunes:image' tag and your name in the 'itunes:author' tag, and there are other tags which carry information - your podcast is working without them but some information is as you see missing.
    This page includes a sample basic feed so that you can see what I'm talking about:
    http://rfwilmut.net/pc
    I can't advise on Wordpress: it seems likely that you need the PodPress plugin to get this to work properly, but I'm not sure whether you can do it without.

  • How do I format images (iBook author) to make them bigger with one tap?

    This is a beginner question, I know...

    I'm probably not clear.
    I embedded a photo ( small section of the screen) in text and when viewing it on iPad, I can tap the photo and it is blown to full screen size. I just can't find a way to reproduce it to the other images...

Maybe you are looking for

  • Error code (-9808) when trying to download anything on itunes

    Anytime i try to purchase a song on my iTunes a message pops up and it says there has been an unknown error code (-9808) and I'm unable to complete the purchase and download.

  • Homesharing iPhone Glitch

    I have homesharing setup on both my PC and iPhone. When I try to connect to my PC's library from my iPhone's music app, it connects and shows ALL the songs in the library if I go to the songs tab. But if I go to Artists or Albums tab, it shows less t

  • Uninstalled Itunes Wrong Now it wont install says i need Itunes.msi

    my Itunes out of No Where just stopped working and brought up the Error 7 Windows 126 Screen and said please reinstall itunes... I Uninstalled Itunes Wrong on my Laptop...Then when i go into the control panel to delete it completely it wont let me sa

  • Bug SQL Developer 3.0.04 Save Package Spec and Body to ips file bug

    Hi. I have problem with export package body end header. Exported ips file have some rows switched compared to original source code. SQL Developer version: 3.0.04. Build MAIN-04.34 Error simulation: - Click on package header with right mouse button in

  • Parse xml document with xpath

    I would like to parse an xml document using xpath, see: http://www.onjava.com/pub/a/onjava/2005/01/12/xpath.html however, in the documentation (in the link above), it states that I need J2SE 5.0. Currently, I have: $ java -version java version "1.5.0