How to get the file name from downloads folder with the applescript??
Hi All..
I am downloading an application to downloads folder, I need to install the same application after downloading programatically.
So how do I get the filename in runtime while downloading or after downloading from downloads folder with Applescript or Java?
Also my download URL link doesnot contain full name of the download file.
Pls suggest.
Hi,
The best method is to use curl.
Other methods are not reliable, but can work, it depends on several factors (what the script does, what the user does).
Here is an example with the curl command:
set tUrl to "http://sourceforge.net/projects/vlc/files/2.0.4/macosx/vlc-2.0.4.dmg/download?ac cel_key=60%3A1350656196%3Ahttp%253A//www.videolan.org/vlc/download-macosx.html%3 A7233e4e9%245818d66f39b0576e1e9c4a0f3b46b1991180bfdd&click_id=976a88ee-19f7-11e2 -9a21-0200ac1d1d8e&source=accel"
set dFolder to path to downloads folder
tell application "Finder" to set newFolder to (make new folder at dFolder) as string
set f to quoted form of POSIX path of newFolder
do shell script "cd " & f & " && curl -L " & tUrl & " -o 'vlc.dmg'" -- download to file "vlc.dmg"
set downloadedFile to newFolder & "vlc.dmg" --<-- HFS path
--do something with the downloadedFile
Similar Messages
-
How to get IDL file name from CORBA IOR string
hi, is it possible to get IDL file name from the IOR string? how?
regardsHi,
I don't think so.
And if it was possible, which interface should be returned if
the referenced object implements more than one?
Regards.
Karl -
SSIS - creating part of the file name from an id in the database
I am trying to figure out how to pull an "id" from my data source to include in the file name. Right now the file name created looks like customer_002_timestamp.txt. I need to add the id to the file name and I need to grab it at the time I get
the data, so then the file name becomes customer_002_id_timestamp.txt.
My data source is Oracle and I am using Attunity, so I do not have the capability of using the resultset found in the SQL Task because I have to use the data task.
Has anyone ever extracted an id from a query against Oracle using the Attunity connector to add as part of the file name? If so, how would I add that to my control flow task?
Thanks in advance for any assistance.Is it a static id value you want
Then you can just use a SSIS variable to hold value from resultset in execute sql task
Then inside your data flow you can use an expression for setting value of another variable which can be used for setting filename in your destination task. The expression will include logic to concatenate id variable also which we populated in the previous
step.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How can I remove my name from being associated with the GB file I export?
I am using Garage Band '11, 6.0.5.
I am editing an audio recording for a friend.
When I exported the edited recording, it had my name associated with the file as the artist, album, etc.
I searched and found "My info" (in "Preferences") and deleted my information from ALL name, album, artist fields, but it still exported the file with my name as the artist (but it did not list it as from my album this time)?
Does anyone know how/where/what I need to do to remove all references of my name associated with this file I'm editing?
And also, can I change who is associated with a GB file, from file to file (i.e. if editing my audio, use my name & info, if editing for a friend or colleague, theirs? or is the name associated with my GB account universally embedded into every file, no matter if I want it to be mine or not)?
Thank you for your support!
JoeWhen I exported the edited recording, it had my name associated with the file as the artist, album, etc.
The problem is, that this information is stored with the GarageBand project, when you first create the project. You have to edit the Preferences, before you create the project.
If the project already exists, you can change this option by turning the project into a podcast. Add a Podcast track (Track menu, Show Podcast Track), select the podcast track, and open the Info panel. Then edit the artist field in the Info panel, before you save the song to disk.
(added: I saw the workaround with the Podcast track first in a post by Edgar). -
How to get the file name from Oracle B2B 10g
Hi My requirement is I am getting a CSV file from Trading partner, I am using oracle 10g b2b to translate the data.
In my BPEL 10g I am using AQ adapter to get the message from IP_IN_QUEUE.
Now I want to get the file name Eg: SampleFile.dat of the CSV file in my BPEL process.
I tried using the b2b.filename property in the receive activity and it is not getting the file name.
<sequence name="main">
<receive name="Receive_Note" partnerLink="GetB2BNote"
portType="ns1:Dequeue_ptt" operation="Dequeue"
variable="Receive_Note_Dequeue_InputVariable"
createInstance="yes">
<bpelx:property name="b2b.fileName" variable="WriteFileName"/>
</receive>
</sequence>
Can you help me to get the file name from Oracle b2b 10g ?
Thanks,
b2b userHi My requirement is I am getting a CSV file from Trading partner, I am using oracle 10g b2b to translate the data.
In my BPEL 10g I am using AQ adapter to get the message from IP_IN_QUEUE.
Now I want to get the file name Eg: SampleFile.dat of the CSV file in my BPEL process.
I tried using the b2b.filename property in the receive activity and it is not getting the file name.
<sequence name="main">
<receive name="Receive_Note" partnerLink="GetB2BNote"
portType="ns1:Dequeue_ptt" operation="Dequeue"
variable="Receive_Note_Dequeue_InputVariable"
createInstance="yes">
<bpelx:property name="b2b.fileName" variable="WriteFileName"/>
</receive>
</sequence>
Can you help me to get the file name from Oracle b2b 10g ?
Thanks,
b2b user -
File Adapter - how to get the file count from a folder
Hi All,
I have a requirement that have to poll a directory when the file count is reached to number N (ex:number of files avilable in folder is 5) otherwise it should wait and not pick any of the files. Is it possible to get the file count from a folder using file adapter ?? otherwise please suggest me an approach to achieve this requirement.
Thanks,
JJHi Sarath,
Thank you for your reply.
Go with the list files operation of file adapter it will gives you the number of files in the specified folder as you given. . - this step is already done.
When the number of files reaches your count startup your webservice that which can polls the files. . . - how can i acheive this?? Have to poll the directory and process the number files - please let me know, what could be added to the webservice which is being invoked after cheking file count from parent process.
The reason for the above question is - we cannot use ReadFile operation in second webservice because it will be automatically triggered when the file is avilable. Also SyncRead operation supports reading one file in b/w bpel process. Kindly explain me the implementation steps.
Thanks,
JJ -
Retreiving the file names from directory inside another directory from application server
Hi,
I had a problem in retreiving the file names from a directory inside another directory.
I tried using the FM's SUBST_GET_FILE_LIST, RZL_READ_DIR_LOCAL and EPS_GET_DIRECTORY_LISTING
But here I am getting only one directory details.
Actually my file is located a directory inside one more directory and one more directory and inside the files are located.
i.e total 3 directories inside the 3rd one my files are there.
I need to read the latest file name in the directory.
So that i can do some manipulation after getting the file name.
Is there option like OPEN DATASET , READ DATASET and CLOSE DATASET?
Can anyone please let me know How can i acheive this one.
Regards
RamHi Ram,
Following thread can be helpful for you, were it shows in the tables structure rsfillst a field RSFILLST-TYPE whether its a directory or file..........
http://scn.sap.com/thread/865272
thanks and regards,
narayan -
How to get Sequence File Name ?
Hello everybody !!
I'm using TestStand 3.1 and i would like to get sequence file name. I've tried to use NameOf() function, but without success.
Of course, I've searched previous posts about the same question, but nothing works.
Is there someone able to tell me how to get sequence file name ?
Thanks a lot.
MrOrangeMrOrange,
first of all, the solution i will present only works for saved sequence files.
you got all information you need within TestStand itself, just browse for RunState.SequenceFile.Path. here you can find the filename. but the path of the file is also included in the string, so this is a part you have to get rid off.
you can use statements to extract the filename from the path. just search the string for the last occurence of "\\" (searchinreverse!) and then you can retrieve the right() part of the path. beware that right() needs the number of characters you want to extract, not the startindex!!
hope this helps,
Norbert B.
NI Germany
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Get Logical file name from Physical file name
Hi everybody,
Please how can i get Logical file name from Physical file name ?
Thanks & Regards
HassanHi,
What i want is to get Logical file name from Physical file name, and not the opposite (get Physical file name from Logical file name).
Thanks & Regards,
Hassan -
Does Adobe Send allow you to select how many days your files can be downloaded - as with Adobe Send Now? Also, why don't I see the virus scanning message any longer with "Send" versus "Send Now"?
We relied upon the "days available for download" to get people to take
action more quickly. The "virus scanning" progress bar was simply another
way of knowing this activity was actually taking place - unless this is
written somewhere in the Adobe Send User Guide.....wherever that is.
On Tue, Dec 2, 2014 at 12:09 PM, bob.treitman <[email protected]> -
The file name is not valid. The file name is a device or contains invalid characters.
Hi ,
I am getting below error in SSIS 2008 package when it is run through control-m
The file name is not valid. The file name is a device or contains invalid characters.
component "FF_SRC_InboundFidelityInputFile" (1) failed the pre-execute phase and returned error code 0xC020207E.
although this package is working fine in dev environment from visual studio.
control-m agent has proper permissions to the folder still it is failing. Please if anyone knows solution for this issue. I am working on this issue since more than a week but reached nowhere. Please help.
Thanks
Paras GuptaHi Paras,
Based on your description, it is not the VS IDE issue, if it is related to the SSIS, I suggest you post the issue in this forum here:http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlintegrationservices
, and there you would get better response.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I just bought music on my iTunes account and the files did not download completely. The songs play for a minute or so then skips to next song
If you live in a Region that allows re-downloading Music... Delete the Song and re-download it...
Download Past Purchases
http://support.apple.com/kb/HT2519
If not... Contact iTunes Customer Service
Apple Support iTunes Store Contact Us -
How to get the file name from directory
Hi,
I have a directory called test inside i have only one .txt file. i dont know that file name.
Is it possible get the file name using PL/SQl code. ???
Using that .txt file i have to create a dynamic table.
If i have use *.txt also not working
Anyone suggest me its possible to do or not????
Cheers,
ShanHi Saubhik ,
Wheni execute the function i am getting the following error
Warning: compiled but with compilation errors
Errors for FUNCTION LISTDIR
LINE/COL
ERROR
7/3
PLS-00201: identifier 'DBMS_BACKUP_RESTORE.SEARCHFILES' must be declared
7/3
PL/SQL: Statement ignored
8/54
PL/SQL: ORA-00942: table or view does not exist
8/20
PL/SQL: SQL Statement ignored
10/11
PLS-00364: loop index variable 'EACH_FILE' use is invalid
10/2
PL/SQL: Statement ignored Cheers,
Shan -
How to Remove Jar File name from the screen of nokia 40 series
hi
i have the problem with running midlet.
the jar file jame is always visible on the screen, how to remove that ?>
Prasanna Kumar wrote:
> Hi ALL
>
> I am using file adapter and I what to create file name dynamically by acesssing PO number and time stamp from the payload using variable substution.
> But the problem is I am getting ":" in time stamp field value and it is not acceptable for file name .
> So could you please tell me a way that I can remove this ":" from that particular field value and create the file name dynamically.
>
> Note 1)Add Time stamp option will not help me as we require a time stamp of particular zone.
> 2) Dynamic Configuration code is also not use full as I am using 1:n file creation
does the time stamp with the ":" a part of your output file?
else use a replaceAll function in your mapping and replace the : with empty string then use the value in the variable substitution
Another option is use the normal BPM for 1: N message flow. The use a simple java mapping that will introduce a dynamic configuration and you can create the file name as you want. the java mapping will be used in the flow of messages from BPM to target system.
ref: /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name -
How to store the File Name from a Unix Directory into a ODI variable?
Hi,
I have built a ODI package with the following steps:
1. ODI is polling for a flat file in a Unix directory. I have used OdiFileWait tool for this purpose. Here the file name is not fixed, so I am using wild character (*) to poll for file. Example: DF*ABC1*.DAT where the first wild character denotes 1 letter and the second wild character denotes 2 digits.
2. In the second step, if the file is found, I am moving the file to ODI file server path (../oracledi/demo/file). Here I have used ODIFileMove tool.
3. Then I am using an ODI Interface to Load the file data into a Oracle database table.
4. I am using a Process log table to keep the log for each step I am executing in ODI that is ODIFileWait, ODIFileMove, Interface etc. for each file. In this table a row needs to be inserted after ODIFileWait tool gets the file, with the File Name and File Date. Later on this row will be updated as the consequent steps are executed.
Here is my concern, I need to get the exact File Name of the file after ODIFileWait gets the file and I need to insert that in the Process Log table after the ODIFileWait step gets a file. So if I can store the File Name in a ODI Variable, I can insert it into the Process log table at this point. This I am not able to do.
The files are coming in a different directory (not in ODI file server path), So after getting the file it is moved to ODI file server path (../oracledi/demo/file)
The Files which I am processing are fixed length format. Also, the File name and File Date is stored in the 1st Record(Header record) of the files.
Kindly provide me suggestions to implement this in my code.
Thanks and Regards,
Anik
Edited by: 809820 on Nov 10, 2010 11:36 PMLook at this link -http://odiexperts.com/getting-one-or-several-unknown-files-from-a-directory
change the command to fetch the ls command and write into File and then using either java or jython break the data and fetch the file name and date and insert into log table.
(or)
you can use the os.system command and get the complete ls command into string and then process and insert it.
Let us know if you need any other help.
Maybe you are looking for
-
PI 711 Installation: Loading of 'SAPNTAB' import package: error but no log
Hello, I'm perfromong an installation of a SAP PI 7.11 ystem on windoows Server 2003 and Oracle 10.2 . I've perfromed the installation of the DEV system without particular issue. But now when tryning to install the QAS system , I can't finish the ins
-
How do I change my default email on the "Me" contact from a Facebook email to my normal email address in the same contact? Or at least change it for the autofill information? Perfernece for contact to change. Do I just have to dis-associate my cont
-
Sending Control-Z to Input Stream
Hi everyone, I'm writing an interface to a command line program, and one of it's features is that it will accept "forms" through standard input. The default is that notepad will open when the command is typed, and you can edit the form through there.
-
why when i hit record on my DSR-PDX10 Sony Camcorder, it is telling me that it is recording but when i turn it to VCR mode and rewind back what i just recorded nothing is their? it is just a plain blue screen. their isnt even the amont of time in the
-
Hello, I have a header and an item table which contains customer records in the header table and line items in the item table . A Customer has many billing document and hence there are a lot line items with the same material. I want to use the collec