• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help -> Excel -> OpenText command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help -> Excel -> OpenText command


  • Subject: Re: Help -> Excel -> OpenText command
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 24 Sep 2002 20:37:22 +1000

On 24/9/02 8:21 PM +1000, Bjorn Van Blanckenberg, email@hidden, wrote:

> After OpenText you have to specify a the file to open
>
> OpenText "harddrive:folder:folder:filename" origin xlMacintosh ....
>
> The problem is that I want to make a droplet and the refence to the file to
> open is the file that was dropped onto the droplet.
>
> OpenText dropped_item origin xlMacintosh ....
>
> In Excel I get an error that I have to check the file if it is moved or
> check the spelling of the file.
>
> Is it possible to use a variable in that command or not.

I _think_ what you're after is something like:

on open fileList
set theFile to (item 1 of fileList) as text
OpenText theFile ...

--
Shane Stanley, email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Help -> Excel -> OpenText command (From: Bjorn Van Blanckenberg <email@hidden>)

  • Prev by Date: Help -> Excel -> OpenText command
  • Next by Date: Re: Getting Past the OS X Screen Saver Login
  • Previous by thread: Help -> Excel -> OpenText command
  • Next by thread: Shell Scripting
  • Index(es):
    • Date
    • Thread