AppleScript Ouvrezledossier on Server intranet link works, but...

Hello

in our BackOffice intranet web site, we must let our local users to open files in a repository.

So far, all this work was done by a file in jsp (that points to the folder you want), downloaded from our pages of back-office.

This jsp file is automatically opened by beginning of java web, which open an applescript script that display the desired file to the user.

In recent months, the updated java variety they have slowed the entire (almost 40 seconds from click to open file), and I need an alternative.

I think I'm on the right track, I started with this simple applescript (I'm a newbie applescript):

Tell application "Finder" open ("' / Volumes/SharedFoder/folder / ' as a POSIX file") end tell

then I encoded URL the script, then added to a href in this way:

AppleScript://com. Apple.scripteditor? action = New & script = say % 20application % 20% 22% 22% 0% 20% 20% 20open to inder (% 22% 2FVolumes % 2FSharedFoder % 2FFolder % 2FFolder % 2F % 22% 20% 20POSIX % 20file s a) % 0Aend % 20tell

And it works like a charm if... you manually run a close windows applescript that displays when you click on the link to the back office.

I still need to automate the file opening and closing the window, I tried several ways, but so far without success.

Any help is appreciated.

At least now I have quit the Script Editor

say application 'Finder '.

Open ("" / Volumes/SharedFoder/folder / ' as POSIX file")

end say

say application ("Script Editor") to quit smoking without economy

URL encoded

AppleScript://com. Apple.scripteditor? action = New & script = say % 20application % 20% 22% 22% 0% 20% 20% 20open to inder (% 22% 2FVolumes % 2FSharedFoder % 2FFolder % 2FFolder % 2F % 22% 20% 20POSIX % 20file s a) % 0Aend % 20tell % 0Atell % 20application % 20 (% 22Script % 20Editor % 22) % 20% 20quit % 20without % 20saving

Launch, but still not automatic

Tags: Mac OS & System Software

Similar Questions

  • Links work but question blue mark on working capital?

    I'm totally new to dreamweaver CS4. I transferred my iweb in there site.


    In only 1 page (others have no problem) all look totally good text links until I put my cursor on it, then it changes to the blue brand question.

    The links work fine and I can say that all images and rollovers (png/jpg) files appear to be in the correct folders.

    I tried to move the models outside the main directory and it worked at first but then not.

    All mouse code looks like this:

    onmouseover = "IMmouseover ('shapeimage_2', ' 0');

    .. .and one of the web pages has the same code and does not have this problem of question mark!

    Thanks for your help in advance!
    Laja

    I don't know why I don't see in your first post. Who told you to use IMmouseover? It should be onmouseover

  • topic link works, but the cursor not

    Hi all

    I created a HTML using HR 2002 Help file. I gave the link to see the previous topic and next topic using the buttons. In the final result, the link works fine (I'm able to view the appropriate topic) in the right pane, but the slider does not get positioned in the exact spot of topic in the column to the table of contents (e.g., the left pane)... but when I generate Webhelp, the cursor is positioned properly in the section... . How... y at - it an option to change so that it might work for HTML Help too... Please help me!

    Hi usureka

    In addition to great feedback from my colleagues Peter Expert community, there is another parameter that could come into play here which has not been mentioned.

    Expand your unique Layouts of Source folder.
    Double-click the presentation of Microsoft HTML Help.
    Click on the Advanced... button.
    Click the TOC Styles tab.
    Ensure there is a check mark in the box marked "always show selection.

    See you soon... Rick

  • 4.6 NetCharts server does not at all, NetCharts Server 7.0 works but bad generated Siebel server query URL

    Hello

    The "NetChartsServer4.6SiebelEdition.exe" which included Siebel Innovation Pack 2015 does not at all. It cannot be installed on Windows Server 2008 R2 / (also does not work on any compatible mode, for example, Server 2003).

    \15.0.0.0\Windows\Server_Ancillary\Visual_Mining_Netcharts_Server\enu\windows\NetChartsServer4.6SiebelEdition.exe

    I tried to download the last server of NetCharts 7.0 on official site, then configure the Siebel server to use the NetCharts Server 7.0.

    Following the file and folder have been configured correctly on the NetCharts server:

    C:\Program Files (x 86) \Visual Mining\NetCharts Server 7.0\Server\root\projects\Siebel.chart\Siebel.cdx

    But after you run graphic graphs of sales opportunity, I got the following errors, it says "The URL < b >http://192.168.1.2:8001/projects/Siebel.cdx< /b > you have requested could not be found". ""

    It seems that Siebel server can connect to the NetCharts Server 7.0, but the Siebel server send request wrong URL, the URL must be " " http://192.168.1.2:8001/projects/Siebel.Chart/Siebel.CDX ".

    Please help, thanks.

    Here is the newspaper of record.

    -----------------------------------------------------------------------------------------------------------

    NetCharts Log: netcharts_access_log.2015 - 11 - 23.txt

    192.168.1.2 - AnonymousNCSUser [23/Nov / 2015:19:15:34 8000] "POST /projects/Siebel.cdx HTTP/1.1" 404 180

    192.168.1.2 - AnonymousNCSUser [23/Nov / 2015:19:15:34 8000] "POST /projects/Siebel.cdx HTTP/1.1" 404 180

    192.168.1.2 - AnonymousNCSUser [23/Nov / 2015:19:15:34 8000] "POST /projects/Siebel.cdx HTTP/1.1" 404 180

    192.168.1.2 - AnonymousNCSUser [23/Nov / 2015:19:15:34 8000] "POST /projects/Siebel.cdx HTTP/1.1" 404 180

    -----------------------------------------------------------------------------------------------------------

    The Siebel server log: SSEObjMgr_enu_0009_9437194.log

    Error ObjMgrBusServiceLog 1 00000002565209c 8-0    2015-11-23 19:15:34 (bmsvc.cpp (4156)) SBL-CHT-00111: an error occurred when sending a request to the graphics server.

    Error ObjMgrLog 1 00000002565209c 8-0    2015-11-23 19:15:34 (hfrcht.cpp (1641)) SBL-CHT-00111: an error occurred when sending a request to the graphics server.

    Error ObjMgrLog 1 00000002565209c 8-0    2015-11-23 19:15:34 (hfrcht.cpp (1007)) SBL-CHT-00102: there is no data for the chart.

    GenericLog GenericError 1 00000002565209c 8-0    2015-11-23 19:15:34 fonts-> Verdana

    GenericLog GenericError 1 00000002565209c 8-0    2015-11-23 19:15:34 fonts-> Verdana

    GenericLog GenericError 1 00000002565209c 8-0    2015-11-23 19:15:34-> postData ChartName = "graphic possibility Applet - analysis of current Pipeline." ChartWidth = 960; ChartHeight = 560; ChartType = BARCHART; Bar3DDepth = 0; BarWidth = 40; Background = (xffffff, NO, 1, null, white CENTER); Header = ("Sales stage", black, "Verdana", 15); HeaderBox = (xffffff); RightTitle = ("", black, 90); RightTitleBox = (xffffff); = LeftTitle ("Sales Stage", black, "Verdana", 15, 90); LeftTitleBox = (xffffff); Footer =("",Black,"Verdana",15,0); FooterBox = (xffffff); NoteSets =("",BOTTOM),("",LEFT),("",LEFT). NoteAxis = (BOTTOM, LEFT), (BOTTOM, LEFT), (BOTTOM, LEFT); NoteArrow = (NONE, black, NONE), (DOTTED, black, NONE), (DOTTED, black, NONE); NoteLabel is OFF, NoteSet2 =("",-1,1.5,0,1.5);. NoteSet3 =("",-1,7.5,0,7.5); BottomScale = (-1, 0,);

    GenericLog GenericError 1 00000002565209c 8-0    2015-11-23 19:15:34

    GRAPH SERVER returned the following error:

    < html > < body bgcolor = white text = black >

    < h2 > 404 not found < / h2 >

    The < b > URL http://192.168.1.2:8001/projects/Siebel.CDX < /b > you have requested is not found

    < body / > < / html >

    Error ObjMgrBusServiceLog 1 00000002565209c 8-0    2015-11-23 19:15:34 (bmsvc.cpp (4156)) SBL-CHT-00111: an error occurred when sending a request to the graphics server.

    Error ObjMgrLog 1 00000002565209c 8-0    2015-11-23 19:15:34 (hfrcht.cpp (1641)) SBL-CHT-00111: an error occurred when sending a request to the graphics server.

    Error ObjMgrLog 1 00000002565209c 8-0    2015-11-23 19:15:34 (hfrcht.cpp (1007)) SBL-CHT-00102: there is no data for the chart.

    Error ObjMgrLog 1 00000002565209c 8-0    2015-11-23 19:15:34 (hfrcht.cpp (1007)) SBL-CHT-00102: there is no data for the chart.

    Hello

    The guides below can help you,

    To overcome the error "SBL-CHT-00111: an error occurred when sending a request to the Graphics Server" when you try to run a chart of the Siebel UI, check the configurations steps.
    For Web Client, check the following:
    Graphic server settings:
    1. in Windows Explorer, navigate to your for ChartWorks Server installation directory; for example:
    C:\Program Files Mining\NetCharts Server 4.6 Siebel Edition\Server\root\projects
    2. create a new subdirectory named Siebel.chart
    3. in the new Siebel.chart subdirectory, create a new file using Windows Notepad, and then type the next three characters uppercase, but without a carriage return: CDL
    4 save the file as Siebel.cdx
    In the library of Siebel 8.0, Siebel Installation Guide for Microsoft Windows > installation graphics Siebel > paragraph: Configuring Siebel graphics. Step 1 States:
    In Windows Explorer, navigate to your for ChartWorks Server installation directory; for example:
    D:\Program Files Mining\NetCharts Server 4.6 Siebel Edition\Server\root

    Guides:

    Chartworks Server expired license: "SBL-CHT-00111: an error occurred when sending a request to the Graphics Server" (Doc ID 489996.1)

    Graph of the SBL-CHT-00111 (Doc ID 541286.1) Server error

    ChartWorks Server Troubleshooting Guide (Doc ID 477099.1)
  • Why my cron for primary/secondary server does not work, but worked at the prompt of

    I have redhat linux version 5, oracle servers 11 GR 2.

    I have cronjobs to monitor the use of tablespace and alert logs.

    However they do not work to the task, but if I execute them at the command prompt, it worked.

    What could be the problem?
    example cron script:
    Head of the script:

    #! / bin/bash
    . / u01/app/Oracle/bin/hydev_env
    MAILTO = "DBA.com"
    LOG=/U01/app/Oracle/dba_cron/out/tablespace_90_full.html
    echo $ORACLE_SID
    sqlplus-s < <-EOF > > / dev/null
    / as sysdba


    Cron job set is like this:


    #------------------------TABLESPACES Check------------------------------------------------------------------------
    0.35 * /u01/app/oracle/dba_cron/scripts/tablespaces_over_90%.sh > /u01/app/oracle/dba_cron/out/tablespaces_over_90%.log > 2 > & 1


    VI/var/spool/mail/oracle:

    At the error like this:
    / bin/sh:-c: line 0: about syntax error unexpected token '2'
    / bin/sh:-c: line 0: ' /u01/app/oracle/dba_cron/scripts/chk_ora_alert_all.sh > /u01/app/oracle/dba_cron/out/chk_oracle_alert_all.log > 2 > & 1'


    Any help guru?

    Hello;

    Usually it is a question of the environment.

    The script works in command prompt, because when you signed on your chosen username environment of a profile settings, for example .bash_profile.

    A crontab task presents no environment. That's why you call hydev_env at the beginning of the script. If something things are missing in your env file especially likely.

    What I do is keep a file for each database in the environment to a place like this:

    / u01/app/Oracle/dba_tool/env (/ u01/app/oracle/dba_tool/env/PRIMARY.env)

    The PRIMARY.env file is .env

    What I keep in there, that's all I need a job like crontab background would need:

    ORACLE_BASE=/u01/app/oracle
    
    ULIMIT=unlimited
    
    ORACLE_SID=PRIMARY
    
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0.2
    
    ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    
    LIBPATH=$LD_LIBRARY_PATH:/usr/lib
    
    TNS_ADMIN=$ORACLE_HOME/network/admin
    
    PATH=$ORACLE_HOME/bin:$ORACLE_BASE/dba_tool/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/GNU/bin/make:/u01/app/oracle/dba_tool/bin:/home/oracle/utils/SCRIPTS:/usr/local/bin:.
    
    export TERM=vt100
    
    export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
    
    export ORACLE_HOME
    
    export LIBPATH LD_LIBRARY_PATH ORA_NLS33
    
    export TNS_ADMIN
    
    export PATH
    
    export MAILTO=
    

    Important If you are not sure, a setting on your system type "env" at a Linux prompt, when you are logged in as user where the script works. Change as needed in your file .env.

    I have here a script call in crontab to check the tablespaces

    #!/bin/bash
    ####################################################################
    #
    
    if [ "$1" ]
    then DBNAME=$1
    else
    echo "basename $0 : Syntax error : use . quickcheck  "
    exit 1
    fi
    
    #
    # Set the Environmental variable for the instance
    #
    . /u01/app/oracle/dba_tool/env/${DBNAME}.env
    #
    #
    
    $ORACLE_HOME/bin/sqlplus /nolog <
    

    Note how I passes the name of the comic as a parameter to the script if I can use the script with several database without changing.

    /U01/app/Oracle/dba_tool/bin/quickCheck.sh primary SCHOOL

    Is the crontab to run every day at 05:12:

    12 05 * /u01/app/oracle/dba_tool/bin/quickcheck.sh PRIMARY > /tmp/quickcheck.out

    Best regards

    mseberg

  • Links working in the preview, but does not work after the FTP download

    I have multiple master pages in my muse adobe site and all works perfectly links in the preview. After download of however, and visit the online site, two links in my master page won't work. On another master page, all the links do not work. I also have different skins for hover, active and visited States and some links work but do not properly follow their States. Pointing the cursor over the links that don't work as turns the mouse in the insertion cursor of type rather than the link hand cursor, as if links aren't links at all, just the text. I have had this problem before, when the first generation site and was able to get technical support for adobe to fix it for me through some troubleshooting by chat. However it happens to more of my links now. I have everything set up according to the interface of muse adobe that it should work fine. I have no idea why I continue to encounter this problem. Any help would be appreciated! Thank you

    On your model page to make a selection of all the... CTRL/A or CMD/A to select all elements on the page. Looks like you have some invisible items you overlapping menus. Alternatively, you can try to right click on your menu and then "put at the top". Hope that helps. If this isn't the case, you can provide a link?

  • The button MC working, but no hand icon

    I create a few develop (for me at least) my site navigation. I created an animation of MC group to use as the nav-buttons and everything works fine. The only problem is that when you hover over the buttons MC, the cursor remains as an arrow instead of turning into the little hand that always happens with links. The links work, but no little hand. What do I need a 'hit zone' set in order to get the hand for popup icon or what?

    I'm really digging Flash. AS3 is not easy AT ALL, but I make some progress.

    Thank you.

    JO

    Try to put buttonMode to true:

    remind.buttonMode = remind.useHandCursor = true;

  • link work on desktop computer. but only shows do not reach into the Muse phones

    the pictures of my office page show the hand and the links work. But one of my images of the phone does not show the hand nor the link works.

    Please check out the link on the image, see in the preview, if the link works correctly. Is different layout is not used and even office serves on phone, then we might need to check the file.

    Thank you

    Sanjit

  • How to make the site root-relative links work in DW and the server?

    See details on buggy behavior DW image link, below. My question is:

    (1) how the site root-relative links work in DW and the server? Or...

    (2) how to reliably automate change of hundreds of links relative to the root of the form

    /images/image.jpg relating to the document?

    In other words, to

    .. /images/image.jpg or

    .. /.. /images/image.jpg or

    .. /.. /.. /images/image.jpg etc... According to the location of the directory.

    The old format (/images/image.jpg ) used to work properly in my previous Setup of DW 8 but appear grey in DW after 'redevelopment' of mac cs5.5 DW. (they look good on the server, but it is difficult to change the image-heavy pages locally when they are all gray).

    I tried to change the files to how DW creates relative links root now:

    /public_html/images/image.jpg, which is a flow of root very easy, attractive, since there is a one-to-one mapping. These look great in DW, but are detailed on the server!

    I looked at the "Advanced" site configuration, and it seemed that it would be possible for the nuke part /public_html/ of my server info... but it also seemed that there was the potential to do damage, modification of these parameters, which are automatically generated from our server connection settings, which seem to work.

    The "links from the document / site root" toggle... did change how DW interprets existing links, or simply change the value by default when you add a link?  I did 80% of the file... before paper links I wondered if relative to the root is not better?

    Of course, it seems less ambiguous for all these pictures if theres a way to make the relative root works for the mode of creation of DW, DW link checking and server.

    Summary of the buggy behavior: (see the test with images here)


    'old style' link of the root of the site

    /images/img_book/WScover120x150_NEW.jpg

    Design veiw in DW: broken (grey w / broken icon)

    Check DW a link: "external link" (i.e., unverifiable, + file might appear orphaned)

    Browser: good

    Ease of switching: n/a (existing format)

    'new style' link site root

    /public_html/images/img_book/WScover120x150_NEW.jpg

    Design veiw in DW: good

    Link check in DW: good

    Browser: broken

    Ease of switching: easy

    Link to document

    .. /.. /images/img_book/WScover120x150_NEW.jpg

    Design veiw in DW: good

    Link check in DW: good

    Browser: good

    Ease of switching: hard (how to automate)

    Absolute link

    http://www.oasisdesign.net/images/img_book/WScover120x150_NEW.jpg

    Design veiw in DW: broken (grey w / broken icon)

    Link check in DW: external (i.e., unverifiable, + file might appear orphaned)

    Browser: good

    Ease of switching: n/a... not a real option

    Thank you!

    Similar discussions on ' / '.

    Think of your site definition is set up wrong.  public_html should not be to anywhere in your local site.  It is up to your remote site under the directory root definition.  See screenshot.  In my example, the root directory of the server is htdocs /.  This is where you put public_html

    Nancy O.

  • Yahoo page does not work. It seems that java does not work, but I have the latest version installed. Yahoo email page has all scrambled together all left links

    Yahoo page does not work. It seems that java does not work, but I have the latest version installed. Yahoo email page has all the links scrambled together on the left side of the page. Same thing with face book page. All use them to work properly. 64 Waterfox win 7

    Do not use waterfox, it is not supported and is a non-official version of Firefox that often has known bugs. Downlaod Firefox from www.getfirefox.com, uninstall waterfox, then try again.

  • The links on my home page do not work but they work in the pages of the child and the siblings

    I'm new to dream but not totally new to web site design.  I have created my master, home pages, children and brothers but did not fill them with content.  My problem is that my links work on all the children and brothers and master page but not the homepage, what I'm missing here?

    Do a select on the homepage to highlight all the elements on the page. It is likely that you have an empty box or the text box overlapping your menu.

  • My link works w/Flash player 11, but I get an error #1009 w/Flash Player 10

    Sorry, I am just learning Flash and this is my first video. My apologies if I should post this in another forum. I work in the CS6 on a Mac (10.6.8). I get the error message is the following:

    Flash10_error_msg.png

    I add the script on the keyframe when the link button is fully arrived on the scene. (I tried to add to the first image, but it gave me an error message.

    link_scirpt_for_button_added.png

    Here's the script for the link:

    webLink_btn.addEventListener (MouseEvent.CLICK, onClick);

    function onClick(e:MouseEvent):void {}

    navigateToURL (new URLRequest ("http://www.accuratebiometrics.com/"), '_blank');

    }

    The link works when I test it in Flash, and it also works when I test it in Flash 11 (11.2.202.228). I wish that the link was backwards compatible with Flash 10 (currently using 10.0.22.87).

    The only other script is a stop on the last image.

    I would really appreciate help up my first Flash video up and running.  ;-)

    Thank you!

    delete the name of the instance of this interpolated object.  in a layer above this interpolation, insert a new layer and add a keyframe to 462 and add webLink_btn to that keyframe on stage.

    You should have a webLink_btn of untweened in the same frame with your code.  Repeat the test.

  • Help - links work in stand alone film, but not in html...

    Hi guys,.

    I have a huge problem. I have a menu in Flash MX (AS2), it's pretty simple: it's a list of links, but every time you hover over one of several related those highlight (the client really wanted it). The code on each button is:

    {run}
    gotoAndPlay (3);
    }

    {We (Release)}
    getURL ("http://festusobayiuwana.com/index.php?option=com_content & view = article & id = 17'");
    }

    {We (Rollout)}
    gotoAndPlay (1);
    }

    It works fine in IE8, it works fine in the preview in flash, but in FF/Chrome rolling works but the link is not clickable. Nothing happens when you click on. I thought maybe it was a record in question, but when I loaded the film in FF, but not embeded in html that it worked well, it is only when it is embedded in html that will not click on the links.

    The film is here , and the film in a plain html page is here.

    http://festusobayiuwana.com/images/Flash.htm

    There is no code that may be playing with her, because it's the only thing in the html code.

    Does anyone know why this problem might have occurred, please?

    Thank you

    Pete

    you have incomplete incorporation of code swf.

    have the flash publish your html file and use it.

  • link work in Flash 8, but it does not work in Dreamweaver

    I made a Flash file swf that contains the button and the ball. When I put the mouse over the button, the ball pops up.
    And also I managed to attach a link to the button using action script.
    Strange thing is the link works fine when I use test movie with Flash 8 but when I insert it into Dreamweaver, although the ball works very well with the mouse, but the link does not work.
    Can someone tell me why?
    Why it works with test movie in Flash 8, but not in Dreamwever.
    Thank you much in advance.

    I have just myself solve my question.
    In a preview of Dreamweaver, the link does not work, but once the page is published, it works.
    Thank you.

  • Microsoft (C) Register Server has stopped working

    The error message "Microsoft (C) Register Server has stopped working" prevents me from opening any browser or my main console of Trendmico on my account administrstor of PC to the home address but strangely no this problem doesn't exist in the accounts no administrator on my PC at home. All the solutions out there? I use Vista Home Premium on 64-bit operating system.

    Thank you

    Hello

    Perform the steps suggested by Halima S from the link below and see if it helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-performance/Microsoft-register-server-has-stopped-working/b579412f-ECA1-4551-981b-51c43ade93e0

    Hope this information helps.

Maybe you are looking for