Finder open using syntax

How do a use a variable for the application to use in the finder open file-name using the-application-path? I am trying to avoid having to code the disk name.
This script fails on open ... using ...
Background:
I am trying to open a script in the applescript script editor without having an associated blank document also be openned.
set appName to "Script Editor"
-- Name of our process
set processName to "Script Editor"
--set fileToPrint to "Macintosh-HD:Applications:Applescript files:clipboard to file name.app"
--set fileToPrintAlias to fileToPrint as alias
set fileToPrint to choose file with prompt "Select an applescript source file."
set theHD to path to startup disk
set theHD to (theHD as text)
log "theHD = " & theHD
set appPath to theHD & "Applications:AppleScript:Script Editor.app"
log "appPath = " & appPath
tell application "Finder"
   --open fileToPrint using "Macintosh-HD:Applications:AppleScript:Script Editor.app"
   open fileToPrint using my appPath
end tell
tell application appName
   activate
end tell
Robert

Hello
Try something like the following code.
set a to choose file with prompt "Select an applescript source file."
set app_ to "/Applications/AppleScript/Script Editor.app" as POSIX file as string
tell application "Finder"
open a using application file app_
end tell
It seems to work as expected under OSX10.2.8 at hand.
Not sure for 10.4, though.
H

Similar Messages

  • Pages app unexpectedly quit whilst I was in the middle of a document. I can now not open it AT ALL. I find it's not just that particular document that won't open, but any of my Pages docs will not open using the current version of Pages. Any help?

    Pages app unexpectedly quit whilst I was in the middle of a document. I can now not open it AT ALL. I find it's not just that particular document that won't open, but any of my Pages docs will not open using the current version of Pages. The reports of the app unexpectedly closing each time, automatically went to Apple, but I am not sure what happens with them then. Does anyone know how to help me with this? We live in a very isolated region so rely on internet help. Thanks

    I also managed to read a few other discussions about Pages and files not being able to open. I actually went to the last back-up and restored the computer from that and everything seemed to work ok again, which is great!...advice from another discussion I think you may have been involved in PeterB. Thanks for the advice...also this advice, as I will make a note of trying to open using the Shift key if it happens again and see what happens...might be an easier first option than restoring from a back-up. Thans heaps for the help!
    I was interested to read some of the other discussions where it was stated that Pages '09 seems to be a better option to use. I have both installed, so I will lkeep this in mind. Thanks heaps!

  • Finding open file handles from core file using mdb/dbx

    Is it possible to find open file handles from a core file? The env is Solaris 5.10 SPARC.
    regards
    becks

    Interesting question, but it's more about Solaris OS/libraries than about Sun Studio C++ compiler. While there's a chance of getting it answered here, I also recommend to post the same question on one of the OpenSolaris forums:
    http://www.opensolaris.org/jive/index.jspa?categoryID=1
    For example, mdb forum:
    http://www.opensolaris.org/jive/forum.jspa?forumID=4

  • Where can I find a Java Syntax Highlighting TextArea?

    Where can I find a Java Syntax Highlighting TextArea?
    I'm currently only aware of JEdit and Netbeans being open source projects containing textarea components.
    BTW can code from the above projects be used in a project of my own?

    I have a syntax highlighting package (open source, GPL):
    http://ostermiller.org/syntax/
    It comes with a demonstration editor a tutorial:
    http://ostermiller.org/syntax/editor.html

  • Who has a find Open Path plug-in for CS4 Illustrator on WinXP and a close path also?

    Can anyone lead me to a plug-ins for finding open paths and closing them in CS4 on WinXP?
    Thanks

    Just a thought, but, have you tried using Live Paint?

  • How to find open orders and open quantity

    Hi abap gurus,
    i want to find the open orders with the quantity  means those orders for which we don't have goods issues(and partial deliverys is also possible). i get this scenario but i don't know how to start.
      i think i should go to VBUP table and get all the orders
      which have overall status GBSTA = 'A' OR 'B'.
      So from this i will get all the open orders but i need to find open quantity also .
      please tell me how can i find out and  which table do i need to use.

    You need to check between delivery line item table as well sales order line item table.
    Sales order Line item table : VBAP
    Delivery line item table : LIPS
    if order qty and delivery qty are same then there is no open qty if not then there is open qty.
    Thanks
    Seshu

  • [Solved][VIM] E484: Can't open file syntax.vim

    Hi all,
    I've installed Archlinux few days ago on my netbook and yesterday i decided to configure Vim using plugins.
    During plugins configuration, i messed up and i decided to revome all Vim files in my ~ folder in order to restart configuration.
    However, since I've executed the `rm -R .vim .vimrc .viminfo` command, I can't re-activate Vim's syntax coloration using `syntax on` into my .vimrc file nor into Vim directly.
    Here is the error message when I start Vim :
    Error detected while processing /home/romain/.vimrc:
    line 1:
    E484: Can't open file /home/romain/.vim/syntax/syntax.vim
    Press ENTER or type command to continue
    I've found this topic on BBS which seems to be the same problem as me but reinstalling vim or vi doesn't solve this problem.
    I've tried to copy this syntax.vim file from /usr/share/vim/vim73/syntax/syntax.vim but it doesn't solve the problem and I want a clean solution without hacking my ~ folder ; moreover, this bug also appears being root while I haven't configured vim with the root account so it may be a problem into Vim's installation folders or something.
    Thanks for your help and sorry I my english contains mistakes,
    MicroJoe.
    Last edited by MicroJoe (2012-06-14 16:16:45)

    This is the output :
    VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 7 2012 00:41:40)
    Rustines incluses : 1-547
    Compilé par ArchLinux
    Grosse version sans interface graphique.
    Fonctionnalités incluses (+) ou non (-) :
    +arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
    -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
    +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
    -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
    +find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv
    +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent
    +listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape
    +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse
    +mouse_xterm +mouse_urxvt +multi_byte +multi_lang -mzscheme -netbeans_intg
    +path_extra +perl +persistent_undo +postscript +printer -profile -python
    -python3 +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent
    -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
    +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
    -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
    +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
    -xterm_clipboard -xterm_save
    fichier vimrc système : "/etc/vimrc"
    fichier vimrc utilisateur : "$HOME/.vimrc"
    fichier exrc utilisateur : "$HOME/.exrc"
    $VIM par défaut : "/usr/share/vim"
    Compilation : gcc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -march=i686 -mtune=generic -pipe -fstack-protector --param=ssp-buffer-size=4 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
    Édition de liens : gcc -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -L/usr/local/lib -Wl,--as-needed -o vim -lm -lncurses -lacl -lattr -lgpm -ldl -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -fstack-protector -L/usr/local/lib -L/usr/lib/perl5/core_perl/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    (I've noticed that some part were in French but I hope that it'll not be a problem).

  • I am getting this Error while trying to open the Open Document Syntax

    SYNTAX
    ="<a href=\"http://<MyServerIP>:8080/BUSINESSOBJECTS/ENTERPRISE115/INFOVIEW/OpenDocument/opendoc/openDocument.jsp?sDocType=wid&sDocName=59813204&sWindow=New&sRefresh=Y&lsSParameter="URLEncode(""[Parameter])"\" title=\"\" target=\"_self\" nav=\"web\">"[Parameter]+"</a>"
    ERROR
    HTTP Status 404 - /BUSINESSOBJECTS/ENTERPRISE115/INFOVIEW/OpenDocument/opendoc/openDocument.jsp
    type Status report
    message /BUSINESSOBJECTS/ENTERPRISE115/INFOVIEW/OpenDocument/opendoc/openDocument.jsp
    description The requested resource (/BUSINESSOBJECTS/ENTERPRISE115/INFOVIEW/OpenDocument/opendoc/openDocument.jsp) is not available.
    Apache Tomcat/5.0.27
    Edited by: Aravindpune on Oct 18, 2010 7:31 PM

    I am using open document syntax.
    At the time of giving the syntax it's not showing any errors.
    while clicking on that Hyperlink it's showing this error
    when i enter the entire link in the browser also it's giving same error.
    HTTP Status 404 - /BUSINESSOBJECTS/ENTERPRISE115/INFOVIEW/OpenDocument/opendoc/openDocument.jsp
    type Status report
    message /BUSINESSOBJECTS/ENTERPRISE115/INFOVIEW/OpenDocument/opendoc/openDocument.jsp
    description The requested resource (/BUSINESSOBJECTS/ENTERPRISE115/INFOVIEW/OpenDocument/opendoc/openDocument.jsp) is not available.
    Apache Tomcat/5.0.27
    I am using XI R2.

  • How to find open item in bsik table

    anyone can tell me how to find open items for vendor in bsik table or it will store only open item.
    i debug the tcode fbl1n to see . but not able to find
    Kumar

    Hi
    There is no specific field name for open item in the table BSIK.Yes BSIK include a structure named ABSIK_PSO and which is a "IS-PS: Data appendix of open items vendors".
    Yes there is a field name
    BUZEI - Line Item
    EBELP - Item
    You check with your requirement again and try to use these fields,if you still facing some probs than write back to me,i will try to give the appropriate solutions.
    Thanks
    Mrutyunjaya Tripathy

  • Using 10.6.8, internet pdf documents not opening using Adobe Reader; how is this corrected?

    Using 10.6.8, internet pdf documents not opening using Adobe Reader; how is this corrected?  I've tried changing "sharing and permissions" to "read and write" as suggested on other help sites, but this did not correct the problem.

    I had the same problem---contacted Adobe and their service rep helped me by
    A.   Deleting  Adobe Reader from my iMac's Applications in Finder
    B.   Downloading Google Chrome browser and then
    C.   Downloading the latest Adobe Reader for Mac 10.6.8 in Google Chrome--it works
    Adobe acknowledges problem with the latest Snow Leopard update 10.6.8 and with this work around, I can open PDF's using the Google Chrome Browser.
    Is this the ideal solution---NO.  Safari is my main browser. I now have to use a separate browser for PDF's.
    Am I happy to be able to open PDF's---YES
    You can't believe the time I spent to solve this problem before calling Adobe for help. My Apple Care policy expired a month ago . As I use Photoshop Elements, I was not charged by Adobe for their help on the telephone.

  • Finder Opens When I Left Click Any Dock Application

    When I wake my system up from Sleep, I have a problem that occurs intermittently. When I left click any icon on the dock, ie. Mail, Finder opens and the Mail application is highlighted. Mail does not open. If I double-click on the application in Finder at that point, the application opens just fine. Has anyone else had this problem?
    By the way, I have updated to Tiger 10.4.7, but the problem has occured prior to the update.
    Intel iMac 20" 2GB RAM 250GB HD 256MB Video Mac OS X (10.4.6)
    Intel iMac 20" 2GB RAM 250GB HD 256MB Video   Mac OS X (10.4.6)  

    When I wake my system up from Sleep, I have a problem
    that occurs intermittently. When I left click any
    icon on the dock, ie. Mail, Finder opens and the Mail
    application is highlighted. Mail does not open. If
    I double-click on the application in Finder at that
    point, the application opens just fine. Has anyone
    else had this problem?
    By the way, I have updated to Tiger 10.4.7, but the
    problem has occured prior to the update.
    Intel iMac 20" 2GB RAM
    250GB HD 256MB Video Mac OS X (10.4.6)
    Intel iMac
    20" 2GB RAM 250GB HD 256MB Video   Mac OS X
    (10.4.6)  
    Yes, I had the same problem and also it was an intermittent problem. I was having trouble with Safari and Mail which I used most often. Sometimes after a while it wouldn't give me the problem but usually I would restart and it would work, but later after my computer was asleep it would give me the problem again. I was even having problems with Safari opening windows in a new tab and not the same window even though it was set to open in the same window.
    Solution: Drag the preferences 'plist' for the 'finder', 'dock', and 'desktop' to the desktop and restart. You will have to reset your preferences, but the only one that took any time was the 'dock', because I have a lot of apps there. You might even want to try one at a time to see which one might be the corrupt list. /users/your name/Library/preferences/com.apple.dock.plist/
    Hope this helps you, I don't think anything is wrong with your mouse or your mouse button settings.
    Really like Edmonton also.
    Jerry D

  • Where can I find a useful "user guide" I can print for an ipad2

    Where can I find a useful "user guide" I can print for an ipad2

    Be green and don't print!  The iPad user's guide is in the bookmarks section of Safari.  But, because you'll be reading it in Safari, you have to be in a wifi area or using the 3G network.  However, you can download the .pdf and open it in the free iBooks reader.  Then you have it with you wherever you go and don't have to be on the internet to read it.

  • Clearing the Finder "Open With" contextual menu ?

    After the install I now have duplicates of all the stuff I used to have in the open with menu.
    Like VLC and then under it VLC (version number).
    How do I clear it?

    As seen here: http://docs.info.apple.com/article.html?artnum=305627
    *Mac OS X: Clearing the Finder "Open With" contextual menu*
    Ever wondered how to "clear" the Finder's Open With... contextual menu choices of any extraneous or older applications? (This is the menu that appears when you control-click or "right-click" a document icon.)
    If your Open With... menu is filled with too many choices to easily scroll through, you can remove the less-commonly used choices. These steps will clear the list except for the most current applications that can open your document.
    From the Finder Go menu, choose Home.
    Open the Library folder in the Home window.
    Open the Preferences folder.
    Find com.apple.LaunchServices.plist.
    Rename "com.apple.LaunchServices", such as to "com.apple.LaunchServices.old", or move it to the Trash.
    The next time you use the Open With.... contextual menu in the Finder, only current applications will be listed. Some items may return if the application that controls them adds itself back to the list.

  • Clean up Finder "Open With" contextual menu in Yosemite

    How do I clean up the Finder "Open With" contextual menu in Yosemite? I have several duplicate and obsolete entries in mine. There are several articles out there that show how to do this for previous versions of Mac OS X, but the instructions don't line up with what I see in Yosemite.
    Also, the entries I have in the menu are from a version of Windows through a version of VMware Fusion, both of which versions I haven't used in a long while. I did a clean install of Yosemite this morning (on an erased disk) so I'm curious how the menu was populated. Did it somehow get inherited through the iCloud Keychain?
    Thanks for any help!

    As seen here: http://docs.info.apple.com/article.html?artnum=305627
    *Mac OS X: Clearing the Finder "Open With" contextual menu*
    Ever wondered how to "clear" the Finder's Open With... contextual menu choices of any extraneous or older applications? (This is the menu that appears when you control-click or "right-click" a document icon.)
    If your Open With... menu is filled with too many choices to easily scroll through, you can remove the less-commonly used choices. These steps will clear the list except for the most current applications that can open your document.
    From the Finder Go menu, choose Home.
    Open the Library folder in the Home window.
    Open the Preferences folder.
    Find com.apple.LaunchServices.plist.
    Rename "com.apple.LaunchServices", such as to "com.apple.LaunchServices.old", or move it to the Trash.
    The next time you use the Open With.... contextual menu in the Finder, only current applications will be listed. Some items may return if the application that controls them adds itself back to the list.

  • Finder Open With Lists Some Applications Twice

    My finder>open with menu lists some applications twice.
    A minor annoyance I'd like to fix.
    Example: If I choose a JPG file and go to "open with" the following programs are listed twice: Firefox, QuickTime, RealPlayer & Safari. Some other programs are listed once.
    There are NOT two versions of these programs on my computer, but there is the System folder from my old Mac.
    Is there a way to fix this little problem?
    Macbook Pro   Mac OS X (10.4.8)   17 inch

    The mac finder will pick up applications anywhere on your hard drive when you do the "open with".
    If you aren't using your old System Folder you could create a .zip archive of it and remove the original Folder.
    I'd be open to hearing other approaches, but this will work.

Maybe you are looking for

  • Messaging server  7 duplicate folders

    Sun Java(tm) System Messaging Server 7.3-11.01 64bit (built Sep 1 2009) libimta.so 7.3-11.01 64bit (built 19:54:45, Sep 1 2009) Using /opt/sun/comms/messaging64/config/imta.cnf (compiled) SunOS 5.10 Generic_142900-03 sun4v sparc SUNW,SPARC-Enterprise

  • My phone died. Just a white screen. I have pictures on it that I need to download. Is it possible?

    My phone died. Just a white screen. I have pictures on it that I really need. Can I download them without having to use the phone to give permission? The phone won't show anything at all on the screen.

  • How do I move a marker in a podcast?

    When I edited the narration in Garageband, the markers for images didn't move. Any suggestions will be appreciated.

  • Error when trying to create a receive location

    Hi, I'm trying to creat a receive location using a WCF-SAP adapter. When I click on the Configure button, I get a "Exception has been thrown by the target of an invocation (mscorlib). Could not load file or assembly 'Microsoft.Adpaters.SAP.SAPGInvoke

  • Hello! Quick Q! I have tried to change my plan.

    When i choose "cancel plan" on my page, it directs me to the support page which sends me right back to "cancel plan". I have a student edition and I have decided to go for the photographer CC wich suits me better! I cant select the new plan because I